-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
44b03af
commit 40ea316
Showing
1 changed file
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<?php | ||
|
||
/** | ||
* @copyright Copyright (C) 2015-2024 AIZAWA Hina | ||
* @license https://github.com/fetus-hina/stat.ink/blob/master/LICENSE MIT | ||
* @author AIZAWA Hina <hina@fetus.jp> | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
use app\components\db\Migration; | ||
|
||
final class m240223_132357_unverified_weapon_id extends Migration | ||
{ | ||
/** | ||
* @inheritdoc | ||
*/ | ||
public function safeUp() | ||
{ | ||
$this->insert('{{%weapon3_alias}}', [ | ||
'weapon_id' => $this->key2id('{{%weapon3}}', 'order_shooter_replica'), | ||
'key' => '46', | ||
]); | ||
|
||
return true; | ||
} | ||
|
||
/** | ||
* @inheritdoc | ||
*/ | ||
public function safeDown() | ||
{ | ||
$this->delete( | ||
'{{%weapon3_alias}}', | ||
['key' => '46'], | ||
); | ||
|
||
return true; | ||
} | ||
|
||
/** | ||
* @inheritdoc | ||
*/ | ||
protected function vacuumTables(): array | ||
{ | ||
return [ | ||
'{{%weapon3_alias}}', | ||
]; | ||
} | ||
} |