| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?php
- namespace app\migrations;
- use yii\db\Migration;
- /**
- * Class M250329032257AddTypeToWithdrawsLimitChangeLog
- */
- class M250329032257AddTypeToWithdrawsLimitChangeLog extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $sql = <<<SQL
- ALTER TABLE `qimall_withdraws_limit_change_log`
- ADD COLUMN `type` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '0:公共额度(如果开启提现余额限额则不包含余额的额度),1:提现余额额度';
- SQL;
- $this->execute($sql);
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- return false;
- }
- /*
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- }
- public function down()
- {
- echo "M250329032257AddTypeToWithdrawsLimitChangeLog cannot be reverted.\n";
- return false;
- }
- */
- }
|