View file database/upgrades/20171116163341_delete_maxlogdat_in_setting.php

File size: 423B
<?php

use Phinx\Migration\AbstractMigration;

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

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