:; d dl mZ d dlmZ d dlmZ d dlmZ ej Zej eej dZ d dZ
d dZ ej r e
dS e dS )
)
fileConfig)engine_from_config)pool)contextNreturnc t d } t j | t dddi t j 5 t j ddd dS # 1 swxY w Y dS )aF Run migrations in 'offline' mode.
This configures the context with just a URL
and not an Engine, though an Engine is acceptable
here as well. By skipping the Engine creation
we don't even need a DBAPI to be available.
Calls to context.execute() here emit the given string to the
script output.
zsqlalchemy.urlT
paramstylenamed)urltarget_metadata
literal_bindsdialect_optsN)configget_main_optionr configurer begin_transactionrun_migrations)r s o/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/alembic/templates/generic/env.pyrun_migrations_offliner s
!1
2
2C'"G,
" $ $ ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !s
A..A25A2c t t t j i dt j } | 5 }t j |t t j
5 t j ddd n# 1 swxY w Y ddd dS # 1 swxY w Y dS )zRun migrations in 'online' mode.
In this scenario we need to create an Engine
and associate a connection with the context.
zsqlalchemy.)prefix poolclass)
connectionr N)r r get_sectionconfig_ini_sectionr NullPoolconnectr r r r r )connectabler s r run_migrations_onliner 5 s? %64b99- K
%*!?
&
(
( % %"$$$ % % % % % % % % % % % % % % %% % % % % % % % % % % % % % % % % %s6 /B;B#B;#B' 'B;*B' +B;;B?B?)r N)
logging.configr
sqlalchemyr r alembicr r config_file_namer r r is_offline_mode r