0
私は以下のような移行を作成しています。私はdbをシードする方法を見つけることができませんでした。 似たようなものをお探しですか?移行時に作成したテーブルにデータを挿入するzend framework 3(doctrine/migrations)にデータベースをシードする方法は?
public function up(Schema $schema)
{
$table = $schema->createTable('user_map');
$table->addColumn('id', 'integer', ['autoincrement'=>true]);
$table->addColumn('user_id', 'integer', ['notnull'=>true]);
$table->addColumn('relation_id', 'integer', ['notnull'=>true]);
$table->setPrimaryKey(['id']);
$table->addOption('engine' , 'InnoDB');
}
あなたは、スタンドアロンであなたの移行を実行するための 'config/CLI-config.php'ファイルを使用している、またはあなたの教義-移行の統合のために何か他のものを使用していますか?また、https://github.com/doctrine/data-fixturesを見ましたか? –