Skip to content

Commit

Permalink
Better m4v extension adding. Missing copyrights.
Browse files Browse the repository at this point in the history
  • Loading branch information
dasgarner committed Mar 6, 2019
1 parent e2d4278 commit 1e9df55
Show file tree
Hide file tree
Showing 4 changed files with 73 additions and 5 deletions.
4 changes: 3 additions & 1 deletion db/migrations/20181126113231_release1812_migration.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ public function change()
$this->execute('UPDATE `module` set Name = \'DataSet View\' WHERE `Module` = \'datasetview\'');

// Add M4V extension to Video module
$this->execute('UPDATE `module` SET validExtensions = CONCAT(validextensions, \',m4v\') WHERE `module` = \'video\' LIMIT 1;');
if (!$this->fetchRow('SELECT * FROM `module` WHERE `module` = \'video\' AND validExtensions LIKE \'%m4v%\'')) {
$this->execute('UPDATE `module` SET validExtensions = CONCAT(validextensions, \',m4v\') WHERE `module` = \'video\' LIMIT 1;');
}
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,30 @@
<?php

/**
* Copyright (C) 2019 Xibo Signage Ltd
*
* Xibo - Digital Signage - http://www.xibo.org.uk
*
* This file is part of Xibo.
*
* Xibo is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
* Xibo is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with Xibo. If not, see <http://www.gnu.org/licenses/>.
*/

use Phinx\Migration\AbstractMigration;

/**
* Class MakeDisplayLicenseColumnUniqueMigration
*/
class MakeDisplayLicenseColumnUniqueMigration extends AbstractMigration
{
/** @inheritdoc */
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,30 @@
<?php

/**
* Copyright (C) 2019 Xibo Signage Ltd
*
* Xibo - Digital Signage - http://www.xibo.org.uk
*
* This file is part of Xibo.
*
* Xibo is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
* Xibo is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with Xibo. If not, see <http://www.gnu.org/licenses/>.
*/

use Phinx\Migration\AbstractMigration;

/**
* Class AddDynamicCriteriaTagsMigration
*/
class AddDynamicCriteriaTagsMigration extends AbstractMigration
{
/** @inheritdoc */
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,30 @@
<?php

/**
* Copyright (C) 2019 Xibo Signage Ltd
*
* Xibo - Digital Signage - http://www.xibo.org.uk
*
* This file is part of Xibo.
*
* Xibo is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
* Xibo is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with Xibo. If not, see <http://www.gnu.org/licenses/>.
*/

use Phinx\Migration\AbstractMigration;

/**
* Class AdjustGenericfileValidExtensionsMigration
*/
class AdjustGenericfileValidExtensionsMigration extends AbstractMigration
{
/** @inheritdoc */
Expand Down Expand Up @@ -33,6 +55,6 @@ public function change()
$newValidExtensions = implode(',', $newExtensions);

// update validExtensions for genericfile module with our adjusted extensions
$this->execute('UPDATE `module` SET `validExtensions` = ' . "'" . $newValidExtensions . "'" .' WHERE module = \'genericfile\' LIMIT 1;');
$this->execute('UPDATE `module` SET `validExtensions` = \'' . $newValidExtensions . '\' WHERE module = \'genericfile\' LIMIT 1;');
}
}

0 comments on commit 1e9df55

Please sign in to comment.