| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?php
- namespace app\migrations;
- use yii\db\Migration;
- /**
- * Class M241203063749AddQimallLinkLog
- */
- class M241203063749AddQimallLinkLog extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $sql = "INSERT INTO `qimall_link`(name, title, cat_id, open_type, route, remark, icon, status, created_at, updated_at) VALUES ('', '业绩统计', '6', 'page', '/plugins7/PerformanceStatistics/index', '', '', '1', '1642586215', '1642586215');";
- $this->execute($sql);
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M241203063749AddQimallLinkLog cannot be reverted.\n";
- return false;
- }
- /*
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- }
- public function down()
- {
- echo "M241203063749AddQimallLinkLog cannot be reverted.\n";
- return false;
- }
- */
- }
|