View file database/upgrades/20190816160721_delete_keywords_in_settings.php

File size: 466B
<?php

use Phinx\Migration\AbstractMigration;

class DeleteKeywordsInSettings extends AbstractMigration
{
    /**
     * Migrate Up.
     */
    public function up()
    {
        $this->execute("DELETE FROM settings WHERE name='keywords';");
    }

    /**
     * Migrate Down.
     */
    public function down()
    {
        $this->execute("INSERT INTO settings (name, value) VALUES ('keywords', 'Ключевые слова вашего сайта');");
    }
}