| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?php
- namespace addons\Redpack\console\migrations;
- use yii\db\Migration;
- /**
- * Class M220928072747InsertQimallGlobalVarMap
- */
- class M220928072747InsertQimallGlobalVarMap extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $sql = "INSERT INTO `qimall_global_var_map`(`name`, `title`, `type`, `is_addons`, `status`, `created_at`, `updated_at`) VALUES ";
- $sql .= "('Redpack', '红包拓客', 'FromTypeMap', 1, 1, 1654569888, 1654569888),";
- $sql .= "('redpack_transfer', '红包转入', 'CapitalTypeMap', 0, 1, 1654569888, 1654569888);";
- $this->execute($sql);
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M220928072747InsertQimallGlobalVarMap cannot be reverted.\n";
- return false;
- }
- /*
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- }
- public function down()
- {
- echo "M220928072747InsertQimallGlobalVarMap cannot be reverted.\n";
- return false;
- }
- */
- }
|