| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <?php
- namespace addons\Store\console\migrations;
- use yii\db\Migration;
- /**
- * Class M240929014217InsertQimallStoreMenu
- */
- class M240929014217InsertQimallStoreMenu extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $sql= "
- INSERT INTO `qimall_addons_store_menu` (`title`, `app_id`, `pid`, `addons_name`, `is_addon`, `url`, `icon`, `level`, `dev`, `sort`, `params`, `tree`, `status`, `created_at`, `updated_at`) VALUES ( '预约看板', '0', 42, '', 0, 'store/client/reserve-board/index', '', 2, 0, 999, NULL, '', 1, 0, 0);
- INSERT INTO `qimall_addons_store_menu` (`title`, `app_id`, `pid`, `addons_name`, `is_addon`, `url`, `icon`, `level`, `dev`, `sort`, `params`, `tree`, `status`, `created_at`, `updated_at`) VALUES ( '预约设置', '0', 42, '', 0, 'store/client/reserve-setting/index', '', 2, 0, 999, NULL, '', 1, 0, 0);
- INSERT INTO `qimall_addons_store_menu` (`title`, `app_id`, `pid`, `addons_name`, `is_addon`, `url`, `icon`, `level`, `dev`, `sort`, `params`, `tree`, `status`, `created_at`, `updated_at`) VALUES ( '排班管理', '0', 42, '', 0, 'store/client/reserve-staff/scheduling', '', 2, 0, 999, NULL, '', 1, 0, 0);
- ";
- $this->execute($sql);
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M240929014217InsertQimallStoreMenu cannot be reverted.\n";
- return false;
- }
- /*
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- }
- public function down()
- {
- echo "M240929014217InsertQimallStoreMenu cannot be reverted.\n";
- return false;
- }
- */
- }
|