-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
08-06-2024г. - Добавление торговца Реф и обработка его по API
- Loading branch information
1 parent
db9dadd
commit c917e12
Showing
9 changed files
with
62 additions
and
2 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
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
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
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
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
52 changes: 52 additions & 0 deletions
52
migrations/m240608_102655_add_ref_trader_to_traders_table.php
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,52 @@ | ||
<?php | ||
|
||
use yii\db\Migration; | ||
|
||
/** | ||
* Добавляем торговца Рефа - в таблицу квестов | ||
* Class m240608_102655_add_ref_trader_to_traders_table | ||
*/ | ||
class m240608_102655_add_ref_trader_to_traders_table extends Migration | ||
{ | ||
/** @var string - Название таблицы */ | ||
private const TABLE_NAME = 'traders'; | ||
|
||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function safeUp() | ||
{ | ||
/** Инсертим нового торговца */ | ||
$this->insert( | ||
self::TABLE_NAME, | ||
[ | ||
'title' => 'Реф', | ||
'preview' => '/img/torgovcy/small/ref.jpg', | ||
'urltoquets' => '/quests-of-traders/ref-quests', | ||
'button_quests' => 'Перейти в раздел квестов Рефа', | ||
'bg_style' => 'interback-grey', | ||
'enabled' => 1, | ||
'content' => '<p><span style="font-size: 16px;">Раcпорядитель Арены организует гладиаторские бои по всему Таркову </span></p>', | ||
'sortir' => 1, | ||
'fullcontent' => null, | ||
'description' => 'Реф. Escape from Tarkov.', | ||
'keywords' => 'Реф из Escape from Tarkov, Что продаёт Реф в Escape from Tarkov, все о торговце Рефе.', | ||
'url' => null | ||
] | ||
); | ||
} | ||
|
||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function safeDown() | ||
{ | ||
/** Дропаем торговца */ | ||
$this->delete( | ||
self::TABLE_NAME, | ||
[ | ||
'title' => 'Реф' | ||
] | ||
); | ||
} | ||
} |
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.