| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <?php
- namespace addons\Store\console\migrations;
- use yii\db\Migration;
- /**
- * Class M230517085502AlterQimallGlobalVarMap
- */
- class M230517085502AlterQimallGlobalVarMap extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- try {
- $sql="INSERT INTO `qimall_global_var_map` ( `name`, `title`, `type`, `is_addons`, `status`, `created_at`, `updated_at`) VALUES ( 'consume_store_order', '门店订单消费', 'CapitalTypeMap', 0, 1, 1654569888, 1654569888);";
- $this->execute($sql);
- $sql="INSERT INTO `qimall_global_var_map` ( `name`, `title`, `type`, `is_addons`, `status`, `created_at`, `updated_at`) VALUES ( 'consume_store_order_close', '门店订单关闭返还', 'CapitalTypeMap', 0, 1, 1654569888, 1654569888);";
- $this->execute($sql);
- $sql="INSERT INTO `qimall_global_var_map` ( `name`, `title`, `type`, `is_addons`, `status`, `created_at`, `updated_at`) VALUES ( 'consume_store_order_refund', '门店订单退款返还', 'CapitalTypeMap', 0, 1, 1654569888, 1654569888);";
- $this->execute($sql);
- }catch (\Exception $e){
- }
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M230517085502AlterQimallGlobalVarMap cannot be reverted.\n";
- return false;
- }
- /*
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- }
- public function down()
- {
- echo "M230517085502AlterQimallGlobalVarMap cannot be reverted.\n";
- return false;
- }
- */
- }
|