| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?php
- namespace app\migrations;
- use yii\db\Migration;
- /**
- * Class M241127075452AlterQimallUserWithdrawLog
- */
- class M241127075452AlterQimallUserWithdrawLog extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- return true;
- $sql = "alter table qimall_user_withdraw_log add `source` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '来源';";
- $this->execute($sql);
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M241127075452AlterQimallUserWithdrawLog cannot be reverted.\n";
- return false;
- }
- /*
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- }
- public function down()
- {
- echo "M241127075452AlterQimallUserWithdrawLog cannot be reverted.\n";
- return false;
- }
- */
- }
|