| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <?php
- namespace addons\Rebate\console\migrations;
- use yii\db\Migration;
- /**
- * Class M230517025956AlterQimallAddonsRebate
- */
- class M230517025956AlterQimallAddonsRebate extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- try {
- $sql="ALTER TABLE qimall_addons_rebate modify column updated_at bigint(20);";
- $this->execute($sql);
- $sql="ALTER TABLE qimall_addons_rebate modify column created_at bigint(20);";
- $this->execute($sql);
- $sql="ALTER TABLE qimall_addons_rebate modify column start_at bigint(20);";
- $this->execute($sql);
- $sql="ALTER TABLE qimall_addons_rebate modify column end_at bigint(20);";
- $this->execute($sql);
- }catch (\Exception $e){
- }
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M230517025956AlterQimallAddonsRebate cannot be reverted.\n";
- return false;
- }
- /*
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- }
- public function down()
- {
- echo "M230517025956AlterQimallAddonsRebate cannot be reverted.\n";
- return false;
- }
- */
- }
|