| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <?php
- namespace app\migrations;
- use yii\db\Migration;
- /**
- * Class M241202102755CreateCapitalTypeMapQimallGlobalVarMap
- */
- class M241202102755CreateCapitalTypeMapQimallGlobalVarMap extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $time = time();
- $sql = <<<SQL
- INSERT INTO `qimall_global_var_map` (`name`, `title`, `type`, `is_addons`, `status`, `created_at`, `updated_at`) VALUES ('transfer_score', '余额转出', 'CapitalTypeMap', 0, 1, {$time},{$time});
- SQL;
- $this->execute($sql);
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M241202102755CreateCapitalTypeMapQimallGlobalVarMap cannot be reverted.\n";
- return false;
- }
- /*
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- }
- public function down()
- {
- echo "M240827033941CreatebackendDeductqimallGlobalVarMap cannot be reverted.\n";
- return false;
- }
- */
- }
|