From 3512c1ff4707065474fba244f77165c47a7cc460 Mon Sep 17 00:00:00 2001 From: Sejun Park Date: Tue, 24 Dec 2024 08:25:09 +0900 Subject: [PATCH] Use MIGRATION_DIR environment variable (#2419) --- sea-orm-cli/src/cli.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/sea-orm-cli/src/cli.rs b/sea-orm-cli/src/cli.rs index 4c771da0..56759aea 100644 --- a/sea-orm-cli/src/cli.rs +++ b/sea-orm-cli/src/cli.rs @@ -69,6 +69,7 @@ pub enum Commands { global = true, short = 'd', long, + env = "MIGRATION_DIR", help = "Migration script directory. If your migrations are in their own crate, you can provide the root of that crate.