| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?php
- namespace app\migrations;
- use yii\db\Migration;
- /**
- * Class M230331014723AlipayMiniJoinGroupChatLink
- */
- class M230331014723AlipayMiniJoinGroupChatLink extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $this->execute("INSERT INTO `qimall_link_category` ( `name`, `title`, `pid`, `is_list`, `remark`, `status`, `created_at`, `updated_at`) VALUES ( 'alipay_chat_link', '支付宝群', 9, 0, '此功能仅限于支付宝小程序跳转到支付宝群聊', 1, 1630564778, 1636017644);");
- $this->execute("INSERT INTO `qimall_link` (`name`, `title`, `cat_id`, `open_type`, `route`, `remark`, `status`, `created_at`, `updated_at`) VALUES ('mp_ali_app_chat', '支付宝群链接', 45, 'alipay_page', '', '', 1, 1634096281, 1636017216);");
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M230331014723AlipayMiniJoinGroupChatLink cannot be reverted.\n";
- return false;
- }
- /*
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- }
- public function down()
- {
- echo "M230331014723AlipayMiniJoinGroupChatLink cannot be reverted.\n";
- return false;
- }
- */
- }
|