View file database/upgrades/20170109175214_delete_session_in_setting.php
<?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);"); } }