View file database/upgrades/20190906181002_add_captcha_type_to_settings.php

File size: 440B
<?php

use Phinx\Migration\AbstractMigration;

class AddCaptchaTypeToSettings extends AbstractMigration
{
    /**
     * Migrate Up.
     */
    public function up()
    {
        $this->execute("INSERT INTO settings (name, value) VALUES ('captcha_type', 'graphical');");
    }

    /**
     * Migrate Down.
     */
    public function down()
    {
        $this->execute("DELETE FROM settings WHERE name='captcha_type' LIMIT 1;");
    }
}