| 1234567891011121314151617181920212223242526272829303132333435363738 |
- <?php
- namespace app\migrations;
- use yii\db\Migration;
- /**
- * Class M240925101144AddTownForDistrictId10219
- */
- class M240925101144AddTownForDistrictId10219 extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $sql = <<<SQL
- INSERT INTO `qimall_town` (`district_id`, `adcode`, `name`, `created_at`, `updated_at`) VALUES
- (10219, 430971, '南湾湖管理处', 1727230412, 1727230412),
- (10219, 430971, '千山红镇', 1727230412, 1727230412),
- (10219, 430971, '北洲子镇', 1727230412, 1727230412),
- (10219, 430971, '金盆镇', 1727230412, 1727230412),
- (10219, 430971, '河坝镇', 1727230412, 1727230412);
- SQL;
- $this->execute($sql);
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M240925101144AddTownForDistrictId10219 cannot be reverted.\n";
- return false;
- }
- }
|