tims-todo/migrations/20140813145709_rename_desc_column_migration.php

15 lines
287 B
PHP
Raw Permalink Normal View History

<?php
use Phinx\Migration\AbstractMigration;
class RenameDescColumnMigration extends AbstractMigration
{
/**
* Rename 'desc' field to 'description'. Reserved words suck
*/
public function change()
{
$this->table('todo_checklist')
->renameColumn('desc', 'description');
}
}