관리-도구
편집 파일: 15fed017ca0b_add_uid_column.cpython-311.pyc
� �Cg � �. � d Z ddlZddlZddlZddlmZ ddlmZ ddlmZm Z m Z mZmZm Z mZ ddlmZ dZdZdZdZd Z e � � Z ej d ej � e� � � �� � Z ede ddd �� � ed e d� � dd �� � ede� � ede� � ede� � ede � � ede � � ede � � ede � � ed e d� � dd �� � f Z ede dd �� � ede� d�d� � ede dd �� � ede� � ede� � ede� � ede � � ede � � ede � � ede � � ed e d� � dd �� � fZd� Zd� ZdS ) zzReplace columns username to uid Revision ID: 15fed017ca0b Revises: 48efb1674139 Create Date: 2016-07-22 17:19:55.478609 � N)�op)�context)�Column�Integer�String�Float�Index�MetaData�Table)�uidconverter�15fed017ca0b�48efb1674139�lve_stats2_history_govzalembic.script.�tsTF)�index�primary_key� autoincrement�username�@ )r r �sum_cpu� sum_write�sum_read�limit_cpu_on_period_end�limit_read_on_period_end�limit_write_on_period_end�cause_of_restrict� server_id� �ix_�_ts_2�uidc �� � t j � � } t j j � d� � d }t j t � � }t dz t z }t j t |� � t j t gt �R � }t |t gt �R � }| � � � }| � |� � � � � }|� � � D ]�}t |� � } | d } | � d� � }||| v r|| | }nFt- j ||| | � � pd}|dk rt0 � d|| � � ||| |<