Просмотр файла database/upgrades/20190301144203_add_currency_to_settings.php
<?php use Phinx\Migration\AbstractMigration; class AddCurrencyToSettings extends AbstractMigration { /** * Migrate Up. */ public function up(): void { $this->execute("INSERT INTO settings (name, value) VALUES ('currency', 'руб');"); } /** * Migrate Down. */ public function down(): void { $this->execute("DELETE FROM settings WHERE name='currency' LIMIT 1;"); } }