View file database/upgrades/20180425122923_rename_admlog_table.php

File size: 396B
<?php

use Phinx\Migration\AbstractMigration;

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

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