bg0ddlZddlmZddlZddlmZddlmZddlmZdZ ej Z e j ee j ej dZ e dd ZiZd d Zd d Zejr edSedS)N) fileConfig)engine_from_config)pool)contextFz alembic.env databasesreturnc i}tjdtD],}ix||<}tj|d|d<-|D]\}}td|zd|z}td|zt|d5}tj |d|t |dd d i tj 5tj| d d d n #1swxYwYd d d n #1swxYwYd S)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. ,\s*zsqlalchemy.urlurlMigrating database %sz%s.sqlzWriting output to %swT paramstylenamed)r output_buffertarget_metadata literal_binds dialect_opts engine_nameN)resplitdb_namesrconfigget_section_optionitemsloggerinfoopen configurergetbegin_transactionrun_migrations)enginesnamerecfile_buffers n/builddir/build/BUILD/cloudlinux-venv-1.0.7/venv/lib/python3.11/site-packages/alembic/templates/multidb/env.pyrun_migrations_offliner*.sG(++OO   ^66t=MNNE ]]__ 9 9 c +d23334 *U2333 %   9  J$ / 3 3D 9 9"*G4     *,, 9 9&48888 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9s72A D8?D! D8!D% %D8(D% )D88D< ?D< c i}tjdtD]F}ix||<}ttj|idtj|d<G| D]\\}}|d}| x|d<}tr| |d<E| |d<] | D]s\}}td|zt j|dd|zd |zt"| t j| ttr1|D]}|d|D]}|dn7#|D]}|dxYw |D]}|dd S#|D]}|dwxYw) zRun migrations in 'online' mode. In this scenario we need to create an Engine and associate a connection with the context. r z sqlalchemy.)prefix poolclassengine connection transactionr z %s_upgradesz %s_downgrades)r/ upgrade_tokendowngrade_tokenrrN)rrrrrr get_sectionrNullPoolrconnect USE_TWOPHASEbegin_twophasebeginrrr rr!r#valuespreparecommitrollbackclose)r$r%r&r.conns r)run_migrations_onliner?RsG(++     * N & &tR 0 0 m   H ]]__.. cX#)>>#3#33LD  .!%!4!4!6!6C  !%C  &  5 5ID# KK/$6 7 7 7  |,+d2 /$ 6 / 3 3D 9 9       "t 4 4 4 4 4  -~~'' - -M"**,,,,>>## ( (C   % % ' ' ' ' (>>## * *C   ' ' ) ) ) )  (>>## & &C   # # % % % % & &7>>## & &C   # # % % % % &sC1GH34G<<H333I&)r N)logginglogging.configrr sqlalchemyrralembicrr6rconfig_file_name getLoggerrget_main_optionrrr*r?is_offline_moder)rJs$%%%%%% ))))))   &Jv&'''  = ) )  ! !+r 2 2!9!9!9!9H4&4&4&4&n7rI