From 1c4acf1402261db170782138261e59d7b720ba6a Mon Sep 17 00:00:00 2001 From: Billy Chan Date: Mon, 4 Jul 2022 17:36:58 +0800 Subject: [PATCH] [cli] remove unused code --- sea-orm-cli/src/commands.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/sea-orm-cli/src/commands.rs b/sea-orm-cli/src/commands.rs index bd1072f2..983dcced 100644 --- a/sea-orm-cli/src/commands.rs +++ b/sea-orm-cli/src/commands.rs @@ -314,8 +314,6 @@ fn create_new_migration(migration_name: &str, migration_dir: &str) -> Result<(), // TODO: make OS agnostic let migration_template = include_str!("../template/migration/src/m20220101_000001_create_table.rs"); - let migration_content = - migration_template.replace("m20220101_000001_create_table", migration_name); let mut migration_file = fs::File::create(migration_filepath)?; migration_file.write_all(migration_template.as_bytes())?; Ok(())