Просмотр файла database/upgrades/20180420003214_rename_user_id_index_in_bookmarks.php
<?php use Phinx\Migration\AbstractMigration; class RenameUserIdIndexInBookmarks extends AbstractMigration { /** * Migrate Up. */ public function up() { $table = $this->table('bookmarks'); $table ->removeIndex('user_id') ->addIndex('user_id') ->save(); } /** * Migrate Down. */ public function down() { } }