From bf5eca605c4c563fbbb18ea360b259e1e7ba9d6b Mon Sep 17 00:00:00 2001 From: Naomi Aro Date: Tue, 10 Apr 2012 11:23:34 +0200 Subject: [PATCH] CC-3605 : Create 2.1 upgrades --- .../common/Version20120405114454.php | 12 --------- .../common/Version20120410104441.php | 27 +++++++++++++++++++ 2 files changed, 27 insertions(+), 12 deletions(-) create mode 100644 install_minimal/upgrades/airtime-2.1.0/common/Version20120410104441.php diff --git a/install_minimal/upgrades/airtime-2.1.0/common/Version20120405114454.php b/install_minimal/upgrades/airtime-2.1.0/common/Version20120405114454.php index f717f0468..953c14a90 100644 --- a/install_minimal/upgrades/airtime-2.1.0/common/Version20120405114454.php +++ b/install_minimal/upgrades/airtime-2.1.0/common/Version20120405114454.php @@ -24,18 +24,6 @@ class Version20120405114454 extends AbstractMigration $cc_subjs_token->addNamedForeignKeyConstraint('cc_subjs_token_userid_fkey', $cc_subjs, array('user_id'), array('id')); $cc_subjs_token->addUniqueIndex(array('token'), 'uniq_token'); //end create cc_subjs_token table - - // change 'soundcloud_upload' -> 'soundcloud_auto_upload_recorded_show' CC-2928 - //$this->_addSql("UPDATE cc_pref SET keystr = 'soundcloud_auto_upload_recorded_show' - //WHERE keystr = 'soundcloud_upload'"); - - //start changes to cc_files - //$cc_files = $schema->getTable('cc_files'); - - $this->_addSql("ALTER TABLE cc_files ALTER COLUMN bit_rate TYPE integer"); - $this->_addSql("ALTER TABLE cc_files ALTER COLUMN sample_rate TYPE integer"); - - //end changes to cc_files } public function down(Schema $schema) diff --git a/install_minimal/upgrades/airtime-2.1.0/common/Version20120410104441.php b/install_minimal/upgrades/airtime-2.1.0/common/Version20120410104441.php new file mode 100644 index 000000000..7ad9994c8 --- /dev/null +++ b/install_minimal/upgrades/airtime-2.1.0/common/Version20120410104441.php @@ -0,0 +1,27 @@ +getTable('cc_files'); + $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 + } + + public function down(Schema $schema) + { + + } +} \ No newline at end of file