| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?php
- namespace addons\Happiness\console\migrations;
- use yii\db\Migration;
- /**
- * Class M250917021943AddHappinessStoreMenu
- */
- class M250917021943AddHappinessStoreMenu extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $sql = "INSERT INTO `qimall_addons_happiness_store_menu` (`title`, `app_id`, `pid`, `addons_name`, `is_addon`, `url`, `icon`, `level`, `dev`, `sort`, `params`, `tree`, `status`, `created_at`, `updated_at`) VALUES ('收银', '0', 0, '', 0, 'happiness/client/cash/index', 'el-icon-money', 1, 0, 999, NULL, '', 1, 0, 0);";
- $this->execute($sql);
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M250917021943AddHappinessStoreMenu cannot be reverted.\n";
- return false;
- }
- /*
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- }
- public function down()
- {
- echo "M250917021943AddHappinessStoreMenu cannot be reverted.\n";
- return false;
- }
- */
- }
|