From 1283d9d3256982cb6a6cd8381aa7f11c4b8a4ee3 Mon Sep 17 00:00:00 2001 From: Chris Tsang Date: Mon, 9 May 2022 21:39:41 +0800 Subject: [PATCH] Tweaks --- sea-orm-cli/src/commands.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sea-orm-cli/src/commands.rs b/sea-orm-cli/src/commands.rs index b0752274..bf2b745a 100644 --- a/sea-orm-cli/src/commands.rs +++ b/sea-orm-cli/src/commands.rs @@ -306,7 +306,7 @@ fn update_migrator(migration_name: &str, migration_dir: &str) -> Result<(), Box< let mut updated_migrator_content = migrator_content.clone(); // create a backup of the migrator file in case something goes wrong - let migrator_backup_filepath = migrator_filepath.clone().with_file_name("lib.rs.bkp"); + let migrator_backup_filepath = migrator_filepath.clone().with_file_name("lib.rs.bak"); fs::copy(&migrator_filepath, &migrator_backup_filepath)?; let mut migrator_file = fs::File::create(&migrator_filepath)?;