| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?php
- namespace app\migrations;
- use yii\db\Migration;
- /**
- * Class M240322074741InsertQimallLink
- */
- class M240322074741InsertQimallLink extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
-
- $sql = "INSERT INTO `qimall_link` ( `name`, `title`, `cat_id`, `open_type`, `route`, `remark`, `status`, `created_at`, `updated_at`) VALUES ( '', '核销', 6, 'page', '/plugins4/WriteOff/index', '', 1, 1634096281, 1634096281);";
- $this->execute($sql);
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M240322074741InsertQimallLink cannot be reverted.\n";
- return false;
- }
- /*
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- }
- public function down()
- {
- echo "M240322074741InsertQimallLink cannot be reverted.\n";
- return false;
- }
- */
- }
|