From 189b7cf61d1aa535648d931ed4ff0d0c820197b4 Mon Sep 17 00:00:00 2001 From: Naomi Aro Date: Tue, 10 Apr 2012 12:00:01 +0200 Subject: [PATCH] CC-3605 : Create 2.1 upgrades --- .../upgrades/airtime-2.1.0/DbUpgrade.php | 2 +- .../common/Version20120410104441.php | 3 --- .../common/Version20120410115311.php | 20 +++++++++++++++++++ 3 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 install_minimal/upgrades/airtime-2.1.0/common/Version20120410115311.php diff --git a/install_minimal/upgrades/airtime-2.1.0/DbUpgrade.php b/install_minimal/upgrades/airtime-2.1.0/DbUpgrade.php index ac708cf34..0bbba5a4a 100644 --- a/install_minimal/upgrades/airtime-2.1.0/DbUpgrade.php +++ b/install_minimal/upgrades/airtime-2.1.0/DbUpgrade.php @@ -11,7 +11,7 @@ class AirtimeDatabaseUpgrade{ } private static function task0(){ - UpgradeCommon::MigrateTablesToVersion(__DIR__, '20120405114454'); + UpgradeCommon::MigrateTablesToVersion(__DIR__, '20120410115311'); $sql = "INSERT INTO cc_pref(\"keystr\", \"valstr\") VALUES('scheduled_play_switch', 'on')"; UpgradeCommon::nonSelectQueryDb($sql); } diff --git a/install_minimal/upgrades/airtime-2.1.0/common/Version20120410104441.php b/install_minimal/upgrades/airtime-2.1.0/common/Version20120410104441.php index 7ad9994c8..2c08f8276 100644 --- a/install_minimal/upgrades/airtime-2.1.0/common/Version20120410104441.php +++ b/install_minimal/upgrades/airtime-2.1.0/common/Version20120410104441.php @@ -14,9 +14,6 @@ class Version20120410104441 extends AbstractMigration $cc_files->addColumn('temp_br', 'integer'); $cc_files->addColumn('temp_sr', 'integer'); - $this->_addSql("UPDATE cc_files SET temp_br = bit_rate::integer"); - $this->_addSql("UPDATE cc_files SET temp_sr = sample_rate::integer"); - //end changes to cc_files } diff --git a/install_minimal/upgrades/airtime-2.1.0/common/Version20120410115311.php b/install_minimal/upgrades/airtime-2.1.0/common/Version20120410115311.php new file mode 100644 index 000000000..aefadbff7 --- /dev/null +++ b/install_minimal/upgrades/airtime-2.1.0/common/Version20120410115311.php @@ -0,0 +1,20 @@ +_addSql("UPDATE cc_files SET temp_br = bit_rate::integer"); + $this->_addSql("UPDATE cc_files SET temp_sr = sample_rate::integer"); + } + + public function down(Schema $schema) + { + + } +} \ No newline at end of file