| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <?php
- namespace addons\Mch\console\migrations;
- use yii\db\Migration;
- /**
- * Class M220812091001InsertQimallLinkCategory
- */
- class M220812091001InsertQimallLinkCategory extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- try {
- $sql = "INSERT INTO `qimall_link_category`(`id`, `name`, `title`, `pid`, `is_list`, `remark`, `status`, `created_at`, `updated_at`) VALUES (33, 'mch', '多商户', 19, 1, '', 1, 1654741229, 1663729697)";
- $this->execute($sql);
- $sql = "INSERT INTO `qimall_link_category`(`id`, `name`, `title`, `pid`, `is_list`, `remark`, `status`, `created_at`, `updated_at`) VALUES (34, 'mch_cate', '多商户分类', 19, 1, '', 1, 1654741255, 1663729702)";
- $this->execute($sql);
- }catch (\Exception $e){
- }
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M220812091001InsertQimallLinkCategory cannot be reverted.\n";
- return false;
- }
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- }
- public function down()
- {
- echo "M220812091001InsertQimallLinkCategory cannot be reverted.\n";
- return false;
- }
- }
|