| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <?php
- namespace addons\Store\console\migrations;
- use yii\db\Migration;
- /**
- * Class M241120090450InsertAddonsStoreAddons
- */
- class M241121141030InsertAddonsStoreAddons extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $time = time();
- $sql= "INSERT INTO `qimall_addons_store_addons` (`title`, `name`, `cover`, `brief_introduction`, `status`, `created_at`, `updated_at`) VALUES ('门店会员', 'StoreAssociatedUser', '', '门店会员', 1, {$time}, {$time});
- ";
- $this->execute($sql);
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M241120090450InsertAddonsStoreAddons cannot be reverted.\n";
- return false;
- }
- /*
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- }
- public function down()
- {
- echo "M241120090450InsertAddonsStoreAddons cannot be reverted.\n";
- return false;
- }
- */
- }
|