M220826100559AlterQimallOrderBatchDelivery.php 964 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. namespace app\migrations;
  3. use yii\db\Migration;
  4. /**
  5. *
  6. * Class M220826100559AlterQimallOrderBatchDelivery
  7. */
  8. class M220826100559AlterQimallOrderBatchDelivery extends Migration
  9. {
  10. /**
  11. * {@inheritdoc}
  12. */
  13. public function safeUp()
  14. {
  15. $this->execute("ALTER TABLE `qimall_order_batch_delivery` MODIFY COLUMN `delivery_file` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '批量发货文件地址' AFTER `operator_name`;");
  16. }
  17. /**
  18. * {@inheritdoc}
  19. */
  20. // public function safeDown()
  21. // {
  22. // echo "M220826100559AlterQimallOrderBatchDelivery cannot be reverted.\n";
  23. //
  24. // return false;
  25. // }
  26. /*
  27. // Use up()/down() to run migration code without a transaction.
  28. public function up()
  29. {
  30. }
  31. public function down()
  32. {
  33. echo "M220826100559AlterQimallOrderBatchDelivery cannot be reverted.\n";
  34. return false;
  35. }
  36. */
  37. }