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)?;