| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?php
- namespace app\migrations;
- use yii\db\Migration;
- /**
- * Class M230803090707InsertQimallDiyComponents
- */
- class M230803090707InsertQimallDiyComponents extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $sql = "INSERT INTO `qimall_diy_components`(`code`, `title`, `group`, `icon`, `count`, `is_top`, `permission`, `sort`, `source`, `status`, `created_at`, `updated_at`) VALUES ('commission-info', '佣金账户', 'member', '', 1, 0, '{\"is_drag\":\"false\",\"is_up\":\"true\",\"id_down\":\"true\",\"is_copy\":\"false\"}', 999, '', 1, 1634538238, 1634538238);";
- $this->execute($sql);
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M230803090707InsertQimallDiyComponents cannot be reverted.\n";
- return false;
- }
- /*
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- }
- public function down()
- {
- echo "M230803090707InsertQimallDiyComponents cannot be reverted.\n";
- return false;
- }
- */
- }
|