fix migration

This commit is contained in:
SvyatoslavArtymovych 2023-05-25 16:10:59 +03:00
parent 9a982f2fd1
commit 5f6e8942d7
1 changed files with 12 additions and 0 deletions

View File

@ -7,6 +7,7 @@ Create Date: 2023-05-25 12:44:41.843011
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
# revision identifiers, used by Alembic.
@ -167,4 +168,15 @@ def downgrade():
op.drop_table("books_access_groups")
op.drop_table("access_groups")
op.drop_table("permissions")
entity = postgresql.ENUM(
"UNKNOWN",
"BOOK",
"COLLECTION",
"SECTION",
"INTERPRETATION",
"COMMENT",
name="entity",
)
entity.drop(op.get_bind())
# ### end Alembic commands ###