Просмотр файла database/upgrades/20180425120315_rename_error_table.php

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

use Phinx\Migration\AbstractMigration;

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

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