View file visavi-rotorcms-63832fa/app/database/migrations/20150921205523_create_bookmarks_table.php
<?php
use Phinx\Migration\AbstractMigration;
class CreateBookmarksTable extends AbstractMigration
{
/**
* Change Method.
*/
public function change()
{
$table = $this->table('bookmarks');
$table->addColumn('topic_id', 'integer')
->addColumn('user_id', 'integer')
->addColumn('posts', 'integer')
->addColumn('created_at', 'timestamp')
->addIndex('topic_id')
->addIndex('user_id')
->create();
}
}