View file database/upgrades/20190917005743_add_deleted_user_to_settings.php

File size: 449B
<?php

use Phinx\Migration\AbstractMigration;

class AddDeletedUserToSettings extends AbstractMigration
{
    /**
     * Migrate Up.
     */
    public function up()
    {
        $this->execute("INSERT INTO settings (name, value) VALUES ('deleted_user', 'Удаленный');");
    }

    /**
     * Migrate Down.
     */
    public function down()
    {
        $this->execute("DELETE FROM settings WHERE name='deleted_user' LIMIT 1;");
    }
}