View file database/upgrades/20170802160424_delete_anonymity_in_setting.php

File size: 422B
<?php

use Phinx\Migration\AbstractMigration;

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

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