U of7@sddlmZddlmZddlmZddlmZejZejdk rJeejdZ ddddZ ddd d Z e rze ne dS) ) fileConfig)engine_from_config)pool)contextN)returnc Cs@td}tj|tdddidttW5QRXdS)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.urlTZ paramstylenamed)urltarget_metadataZ literal_bindsZ dialect_optsN)configZget_main_optionr configurer begin_transactionrun_migrations)rrK/opt/hc_python/lib/python3.8/site-packages/alembic/templates/generic/env.pyrun_migrations_offlines  rc Cs\tttjidtjd}|0}tj|t dt t W5QRXW5QRXdS)zRun migrations in 'online' mode. In this scenario we need to create an Engine and associate a connection with the context. z sqlalchemy.)prefixZ poolclass) connectionr N) rr Z get_sectionZconfig_ini_sectionrZNullPoolconnectrr r r r )Z connectablerrrrrun_migrations_online5s   r) logging.configrZ sqlalchemyrralembicrr Zconfig_file_namer rrZis_offline_moderrrrs