관리-도구
편집 파일: env.cpython-311.pyc
� �Cg � � � 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.2.10-1.el8.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 �<module>r% s� �� � � � � � � %� %� %� %� %� %� � � � � � � ��� � �6�"� #� #� #� �-��!� !� !�(%� %� %�4 �7���� ��������������r$