View file upgrade/migrations/20161104201035_rename_fields_in_notebook.php

File size: 429B
<?php

use Phinx\Migration\AbstractMigration;

class RenameFieldsInNotebook extends AbstractMigration
{
    /**
     * Migrate Change.
     */
    public function change()
    {
        $table = $this->table('notebook');
        $table->renameColumn('note_id', 'id');
        $table->renameColumn('note_user', 'user');
        $table->renameColumn('note_text', 'text');
        $table->renameColumn('note_time', 'time');
    }
}