add default addr migrate

This commit is contained in:
MrLening 2025-03-30 22:21:17 +03:00
parent 010c758ce0
commit 1ebbdfb926

View File

@ -40,7 +40,7 @@ target_metadata = BaseDBModel.metadata
section = config.get_section(config.config_ini_section, {})
match section.get("sqlalchemy.url"):
case "driver://user:pass@localhost/dbname":
url_db = os.getenv("DATABASE_URL_LOCAL_MIGRATE")
url_db = os.getenv("DATABASE_URL_LOCAL_MIGRATE", 'postgresql+asyncpg://admin:admin@localhost:5433/postgresdb')
config.set_section_option(
config.config_ini_section,
"sqlalchemy.url",