chore(cloud): verify integration change
This commit is contained in:
@@ -19,8 +19,7 @@ target_metadata = Base.metadata
|
||||
|
||||
def _database_url() -> str:
|
||||
return normalize_database_url(
|
||||
os.environ.get("CLOUD_DATABASE_URL")
|
||||
or config.get_main_option("sqlalchemy.url")
|
||||
os.environ.get("CLOUD_DATABASE_URL") or config.get_main_option("sqlalchemy.url")
|
||||
)
|
||||
|
||||
|
||||
@@ -38,7 +37,9 @@ def run_migrations_offline() -> None:
|
||||
def run_migrations_online() -> None:
|
||||
supplied_connection = config.attributes.get("connection")
|
||||
if supplied_connection is not None:
|
||||
context.configure(connection=supplied_connection, target_metadata=target_metadata)
|
||||
context.configure(
|
||||
connection=supplied_connection, target_metadata=target_metadata
|
||||
)
|
||||
with context.begin_transaction():
|
||||
context.run_migrations()
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user