Skip to content

Commit

Permalink
unverified weapon id: 46
Browse files Browse the repository at this point in the history
  • Loading branch information
fetus-hina committed Feb 23, 2024
1 parent 44b03af commit 40ea316
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions migrations/m240223_132357_unverified_weapon_id.php
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}}',
];
}
}

0 comments on commit 40ea316

Please sign in to comment.