| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?php
- namespace addons\Store\console\migrations;
- use yii\db\Migration;
- /**
- * Class M250901104649InsertQimallLinkCategory
- */
- class M250901104649InsertQimallLinkCategory extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $sql = "update `qimall_link_category` set `name` = 'store_commodity_cate' where `name` = 'store-commodity-cate' and `pid` = 83;";
- $this->execute($sql);
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M250901104649InsertQimallLinkCategory cannot be reverted.\n";
- return false;
- }
- /*
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- }
- public function down()
- {
- echo "M250726084649InsertQimallLinkCategory cannot be reverted.\n";
- return false;
- }
- */
- }
|