| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- <?php
- namespace app\migrations;
- use yii\db\Migration;
- /**
- * Class M230210071609AddColumnSourceQimallPaidSinglePayLog
- */
- class M230210071609AddColumnSourceQimallPaidSinglePayLog extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- try {
- $sql = "ALTER TABLE qimall_paid_single_pay_log add source tinyint(1) not null default 1 comment '来源:1:会员提现;2:o2o店铺余额提现,3:多商户余额提现'";
- $this->execute($sql);
- } catch (\Exception $e) {
- }
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M230210071609AddColumnSourceQimallPaidSinglePayLog cannot be reverted.\n";
- return false;
- }
- /*
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- }
- public function down()
- {
- echo "M230210071609AddColumnSourceQimallPaidSinglePayLog cannot be reverted.\n";
- return false;
- }
- */
- }
|