getTable('user'); $user->addIndex(['user_id']); $userRelTag = $schema->getTable('user_rel_tag'); $userRelTag->addIndex(['user_id']); $userRelTag->addIndex(['tag_id']); } /** * @param Schema $schema */ public function down(Schema $schema) { } }