From c12adf66449e1c7f7fae8e4e0229434e3b0b1e5d Mon Sep 17 00:00:00 2001 From: Scott Trinh Date: Mon, 2 Dec 2024 13:56:19 -0500 Subject: [PATCH] Do not warn on `.esdl` schema files (#1416) --- src/migrations/create.rs | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/migrations/create.rs b/src/migrations/create.rs index b1cba5394..b3865d540 100644 --- a/src/migrations/create.rs +++ b/src/migrations/create.rs @@ -37,7 +37,7 @@ use crate::migrations::prompt; use crate::migrations::source_map::{Builder, SourceMap}; use crate::migrations::squash; use crate::migrations::timeout; -use crate::platform::{is_legacy_schema_file, is_schema_file, tmp_file_name}; +use crate::platform::{is_schema_file, tmp_file_name}; use crate::print; use crate::print::style::Styler; use crate::question; @@ -272,7 +272,6 @@ async fn gen_start_migration(ctx: &Context) -> anyhow::Result<(String, SourceMap }; let mut paths: Vec = Vec::new(); - let mut has_legacy_paths: bool = false; while let Some(item) = dir.next_entry().await? { let fname = item.file_name(); let lossy_name = fname.to_string_lossy(); @@ -281,18 +280,9 @@ async fn gen_start_migration(ctx: &Context) -> anyhow::Result<(String, SourceMap && item.file_type().await?.is_file() { paths.push(item.path()); - if is_legacy_schema_file(&lossy_name) { - has_legacy_paths = true; - } } } - if has_legacy_paths { - print::warn!( - "Legacy schema file extension '.esdl' detected. Consider renaming them to '.gel'." - ); - } - paths.sort(); for path in paths {