From 282c0e0cc7ecdfe0860b0b4d361faca1e000522e Mon Sep 17 00:00:00 2001 From: Mamun-st <148744521+Mamun-st@users.noreply.github.com> Date: Wed, 3 Jul 2024 18:21:15 +0600 Subject: [PATCH] Update using-custom-migration-template.md --- book/using-custom-migration-template.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/book/using-custom-migration-template.md b/book/using-custom-migration-template.md index 2597f36..7803ab2 100644 --- a/book/using-custom-migration-template.md +++ b/book/using-custom-migration-template.md @@ -66,6 +66,13 @@ return [ 'migrate' => [ 'class' => 'yii\console\controllers\MigrateController', 'templateFile' => '@app/views/migration.php', + 'generatorTemplateFiles' => [ + 'create_table' => '@app/views/migration.php', // Template for creating a new table + 'drop_table' => '@app/views/migration.php', // Template for dropping a table + 'add_column' => '@app/views/migration.php', // Template for adding a column + 'drop_column' => '@app/views/migration.php', // Template for dropping a column + 'create_junction' => '@app/views/migration.php', // Template for creating a junction table + ], ], ],