| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?php
- namespace app\migrations;
- use yii\db\Migration;
- /**
- * Class M240301094226AlterQimallOrder
- */
- class M240301094226AlterQimallOrder extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $this->execute("ALTER TABLE qimall_order add `clerk_code` varchar(12) NOT NULL DEFAULT '' COMMENT '核销码';");
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M240301094226AlterQimallOrder cannot be reverted.\n";
- return false;
- }
- /*
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- }
- public function down()
- {
- echo "M240301094226AlterQimallOrder cannot be reverted.\n";
- return false;
- }
- */
- }
|