idU ddlZddlmZddlmZddlmZddlmZddl m Z e j Z e j ee j dZ d dZd eddfd Zd d Zd d Ze jr edSedS)N) fileConfig)pool) Connection)async_engine_from_config)contextreturnctd}tj|tddditj5tjddddS#1swxYwYdS)aFRun 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_binds dialect_optsN)configget_main_optionr configurer begin_transactionrun_migrations)r s P/opt/cloudlinux/venv/lib/python3.11/site-packages/alembic/templates/async/env.pyrun_migrations_offliners  !1 2 2C  '"G,   " $ $!!   !!!!!!!!!!!!!!!!!!s A..A25A2 connectionctj|ttj5tjddddS#1swxYwYdS)N)rr )rrr rr)rs rdo_run_migrationsr7s _MMMM  " $ $!!   !!!!!!!!!!!!!!!!!!sAAAcxKtttjidtj}|4d{V}|td{Vdddd{Vn#1d{VswxYwY| d{VdS)zcIn this scenario we need to create an Engine and associate a connection with the context. z sqlalchemy.)prefix poolclassN) rr get_sectionconfig_ini_sectionrNullPoolconnectrun_syncrdispose) connectablers rrun_async_migrationsr$>sM +64b99-K ""$$5555555 !!"3444444444555555555555555555555555555     s!B BBcFtjtdS)z Run migrations in 'online' mode.N)asynciorunr$rrun_migrations_onliner*Ps! K$&&'''''r))rN)r&logging.configr sqlalchemyrsqlalchemy.enginersqlalchemy.ext.asyncioralembicrrconfig_file_namer rrr$r*is_offline_moder(r)rr2s3%%%%%%((((((;;;;;;  &Jv&''' !!!!0!*!!!!!    $(((( 7r)