View file upgrade/migrations/20161104211551_rename_fields_in_rules.php

File size: 375B
<?php

use Phinx\Migration\AbstractMigration;

class RenameFieldsInRules extends AbstractMigration
{
    /**
     * Migrate Change.
     */
    public function change()
    {
        $table = $this->table('rules');
        $table->renameColumn('rules_id', 'id');
        $table->renameColumn('rules_text', 'text');
        $table->renameColumn('rules_time', 'time');
    }
}