§
žxP
q´…ã ó¼ — d dl mZ d dlmZ d dlmZ ej Z eej ¦ « ej Z d„ Z
d„ Z ej ¦ « r e
¦ « dS e¦ « dS )é )Úcontext)Ú
fileConfig)ÚBasec óð — t d¦ « } t j | t d¬¦ « 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)ÚurlÚtarget_metadataÚ
literal_bindsN)ÚconfigÚget_main_optionr Ú configurer Úbegin_transactionÚrun_migrations)r s úˆ/builddir/build/BUILDROOT/lve-stats-4.3.2-1.el9.x86_64/opt/cloudlinux/venv/lib/python3.11/site-packages/lvestats/utils/dbmigrator/env.pyÚrun_migrations_offliner ! sÁ € õ ×
Ò
Ð!1Ñ
2Ô
2€CÝÔØ¥ÀðFñ Fô Fð Fõ
Ô "Ñ $Ô $ð !ð !ÝÔÑ Ô Ð ð!ð !ð !ñ !ô !ð !ð !ð !ð !ð !ð !ð !øøøð !ð !ð !ð !ð !ð !s Á
A+Á+A/Á2A/c ó– — t j d¦ « } | €!ddlm} ddlm} |¦ « } ||¦ « } | ¦ « 5 }t j |t ¬¦ « t j ¦ « 5 t j ¦ « ddd¦ « n# 1 swxY w Y ddd¦ « dS # 1 swxY w Y dS )z‰Run migrations in 'online' mode.
In this scenario we need to create an Engine
and associate a connection with the context.
Ú
connectionNr )Úmake_db_engine)Úread_config)r r )
r
Ú
attributesÚgetÚlvestats.lib.dbenginer Úlvestats.lib.configr Úconnectr r r r
r )Úenginer r Ú
lve_stats_cfgr s r Úrun_migrations_onliner 5 sc € õ Ô
×
"Ò
" <Ñ
0Ô
0€FØ
€~Ø8Ð8Ð8Ð8Ð8Ð8Ø3Ð3Ð3Ð3Ð3Ð3Ø#˜™
œ
ˆ
Ø
Ñ.Ô.ˆØ ŠÑ Ô ð %˜ZÝÔØ!Ý+ð
ñ
ô
ð
õ
Ô
&Ñ
(Ô
(ð %ð %ÝÔ"Ñ$Ô$Ð$ð %ð %ð %ñ %ô %ð %ð %ð %ð %ð %ð %øøøð %ð %ð %ð %ð
%ð %ð %ñ %ô %ð %ð %ð %ð %ð %ð %ð %øøøð %ð %ð %ð %ð %ð %s6 Á/B>ÂB&ÂB>Â&B* Â*B>Â-B* Â.B>Â>CÃCN)
Úalembicr Úlogging.configr Úlvestats.ormr r
Úconfig_file_nameÚmetadatar r r Úis_offline_mode© ó r ú