Просмотр файла database/upgrades/20170109175214_delete_session_in_setting.php

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

use Phinx\Migration\AbstractMigration;

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

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