| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?php
- namespace app\migrations;
- use yii\db\Migration;
- /**
- * Class M230323072630AddLinkByAlipayMiniUrl
- */
- class M230323072630AddLinkByAlipayMiniUrl extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $this->execute("INSERT INTO `qimall_link` (`name`, `title`, `cat_id`, `open_type`, `route`, `remark`, `status`, `created_at`, `updated_at`) VALUES ('mp_ali_appid', '支付宝小程序AppID', 11, 'applet', '', '', 1, 1634096281, 1636017239);
- INSERT INTO `qimall_link` (`name`, `title`, `cat_id`, `open_type`, `route`, `remark`, `status`, `created_at`, `updated_at`) VALUES ('mp_ali_app_path', '支付宝小程序路径', 11, 'applet', '', '', 1, 1634096281, 1636017216);");
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M230323072630AddLinkByAlipayMiniUrl cannot be reverted.\n";
- return false;
- }
- /*
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- }
- public function down()
- {
- echo "M230323072630AddLinkByAlipayMiniUrl cannot be reverted.\n";
- return false;
- }
- */
- }
|