U
    ]Údr  ã                   @   s<   d Z ddlmZ ddlZdZdZdZdZdd„ Z	dd	„ Z
dS )
zdfollowers

Revision ID: 50d2e2c8bcc6
Revises: 1b03a951ec6f
Create Date: 2022-12-29 10:51:59.900809

é    )ÚopNÚ50d2e2c8bcc6Ú1b03a951ec6fc                .   C   s<  t  dtjdtjddddtjdtjdd	ddtjd
tjdd	ddtjdtjdd	ddtjdtjdd	ddtjdt ¡ ddtjdt ¡ ddtjdtjddddtjdtjddddtjdt ¡ ddtjdt ¡ ddtjdt ¡ ddtjdt ¡ ddtjdt ¡ ddtjdt ¡ ddtjdt ¡ ddtjdt ¡ ddtjdt 	¡ ddtjdt ¡ ddtjdt ¡ ddtjdt ¡ ddtjdtjddddtjdtjddddtjd tjddddtjd!t ¡ ddtjd"t ¡ dd#d$tjd%tjd&dddtjd'tjddddtjd(tjddddtjd)tjddddtjd*tjddddtjd+tjddddtjd,tjddddtjd-tjddddtjd.tjddddtjd/tjddddtjd0tjddddt 
d,gd1g¡t 
d.gd2g¡t 
d0gd3g¡t d¡¡* t jt  d4¡dd'gdd5 t jt  d6¡dd
gdd5 t jt  d7¡ddgdd5 t jt  d8¡dd,gdd5 t jt  d9¡ddgdd5 t jt  d:¡dd+gdd5 t jt  d;¡ddgdd5 t jt  d<¡dd*gdd5 t jt  d=¡dd(gdd5 t jt  d>¡ddgdd5 t jt  d?¡ddgdd5 t jt  d@¡ddgdd5 t jt  dA¡ddgdd5 t jt  dB¡ddgdd5 t jt  dC¡dd)gdd5 t jt  dD¡dd.gdd5 t jt  dE¡dd/gdd5 t jt  dF¡dd0gdd5 t jt  dG¡dd-gdd5 t  dHtjdIt ¡ dd#d$¡ d S )JNÚcmf_followerÚidé@   )ÚlengthF)ÚnullableÚcmf_locked_atT)ÚtimezoneÚcmf_created_atÚcmf_modified_atÚcmf_viewed_atÚcmf_deletedÚcmf_versionÚnameé   ÚcodeÚsystemÚtextÚimport_originalÚext_idÚis_favoriteÚhas_tree_nodesÚtree_node_is_branchÚtree_hiddenÚordernoÚperm_publicÚperm_has_aclÚperm_inheritÚperm_parent_owner_idÚperm_inherit_acl_idÚperm_effective_acl_idÚperm_encryptÚfollow_childrenÚ0)r	   Úserver_defaultÚnotify_volumeé    Úcmf_author_idÚcmf_owner_idÚ	parent_idÚcmf_modified_by_idÚcmf_locked_by_idÚcmf_import_idÚtree_parent_idÚperm_acl_idÚperm_parent_idÚ	person_idzcmf_import.idzcmf_access_list.idzcmf_person.idÚix_cmf_follower_cmf_author_id)ÚuniqueÚix_cmf_follower_cmf_created_atÚix_cmf_follower_cmf_deletedÚix_cmf_follower_cmf_import_idÚix_cmf_follower_cmf_locked_atÚ ix_cmf_follower_cmf_locked_by_idÚix_cmf_follower_cmf_modified_atÚ"ix_cmf_follower_cmf_modified_by_idÚix_cmf_follower_cmf_owner_idÚix_cmf_follower_cmf_versionÚix_cmf_follower_cmf_viewed_atÚix_cmf_follower_codeÚix_cmf_follower_nameÚix_cmf_follower_ordernoÚix_cmf_follower_parent_idÚix_cmf_follower_perm_acl_idÚix_cmf_follower_perm_parent_idÚix_cmf_follower_person_idÚix_cmf_follower_tree_parent_idÚcmf_projectÚnotify_all_persons)r   Úcreate_tableÚsaÚColumnÚStringÚ	TIMESTAMPÚBooleanÚBIGINTÚTEXTÚIntegerÚForeignKeyConstraintÚPrimaryKeyConstraintÚcreate_indexÚfÚ
add_column© rW   rW   ú7/opt/eva-app/alembic/versions/50d2e2c8bcc6_followers.pyÚupgrade   s~    ×+rY   c                   C   s–  t  dd¡ t jt  d¡dd t jt  d¡dd t jt  d¡dd t jt  d¡dd t jt  d	¡dd t jt  d
¡dd t jt  d¡dd t jt  d¡dd t jt  d¡dd t jt  d¡dd t jt  d¡dd t jt  d¡dd t jt  d¡dd t jt  d¡dd t jt  d¡dd t jt  d¡dd t jt  d¡dd t jt  d¡dd t jt  d¡dd t  d¡ d S )NrG   rH   rF   r   )Ú
table_namerE   rD   rC   rB   rA   r@   r?   r>   r=   r<   r;   r:   r9   r8   r7   r6   r5   r3   )r   Údrop_columnÚ
drop_indexrU   Ú
drop_tablerW   rW   rW   rX   Ú	downgradeW   s*    r^   )Ú__doc__Úalembicr   Ú
sqlalchemyrJ   ÚrevisionÚdown_revisionÚbranch_labelsÚ
depends_onrY   r^   rW   rW   rW   rX   Ú<module>   s   D