| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?php
- namespace addons\Mch\console\migrations;
- use yii\db\Migration;
- /**
- * Class M250625102603InsertQimallAddonsMchMenu
- */
- class M250625102603InsertQimallAddonsMchMenu extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $sql = "INSERT INTO `qimall_addons_mch_menu` (`title`, `app_id`, `pid`, `url`, `icon`, `level`, `dev`, `sort`, `params`, `tree`, `status`, `created_at`, `updated_at`) VALUES
- ('商品服务', '0', 2, 'mch/client/goods/goods-service', '', 2, 0, 999, NULL, '', 1, 0, 0),
- ('商品标签', '0', 2, 'mch/client/goods/goods-label', '', 2, 0, 999, NULL, '', 1, 0, 0);";
- $this->execute($sql);
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M250625102603InsertQimallAddonsMchMenu cannot be reverted.\n";
- return false;
- }
- /*
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- }
- public function down()
- {
- echo "M250625102603InsertQimallAddonsMchMenu cannot be reverted.\n";
- return false;
- }
- */
- }
|