| 12345678910111213141516171819202122232425262728293031 |
- <?php
- namespace addons\Bargain\console\migrations;
- use yii\db\Migration;
- /**
- * Class M250827181511InsertQimallDiyComponents
- */
- class M250827181511InsertQimallDiyComponents extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $sql = "INSERT INTO `qimall_diy_components`( `code`, `title`, `group`, `icon`, `count`, `is_top`, `permission`, `sort`, `source`, `status`, `created_at`, `updated_at`) VALUES ('bargain-popup', '砍价弹窗', 'marketing', '', 999, 0, '{\"is_drag\":\"true\",\"is_up\":\"true\",\"id_down\":\"true\",\"is_copy\":\"true\"}', 999, 'Bargain', 1, 1756289897, 1756289897);";
- $this->execute($sql);
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M250827181511InsertQimallDiyComponents cannot be reverted.\n";
- return false;
- }
- }
|