Просмотр файла database/upgrades/20180425182012_rename_setting_table.php

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

use Phinx\Migration\AbstractMigration;

class RenameSettingTable extends AbstractMigration
{
    /**
     * Migrate Up.
     */
    public function up()
    {
        $table = $this->table('setting');
        $table->rename('settings');
    }

    /**
     * Migrate Down.
     */
    public function down()
    {
        $table = $this->table('settings');
        $table->rename('setting');
    }
}