Просмотр файла database/upgrades/20171020192514_delete_home_in_setting.php

Размер файла: 415B
<?php

use Phinx\Migration\AbstractMigration;

class DeleteHomeInSetting extends AbstractMigration
{
    /**
     * Migrate Up.
     */
    public function up()
    {
        $this->execute("DELETE FROM setting WHERE name='home' LIMIT 1;");
    }

    /**
     * Migrate Down.
     */
    public function down()
    {
        $this->execute("INSERT INTO setting (name, value) VALUES ('home', 'site.ru');");
    }
}