mirror of
https://github.com/flibusta-apps/book_library_server.git
synced 2025-12-06 15:15:36 +01:00
Add translator endpoints
This commit is contained in:
@@ -90,6 +90,20 @@ def upgrade():
|
||||
unique=False,
|
||||
postgresql_using="btree",
|
||||
)
|
||||
op.create_index(
|
||||
op.f("translations_book"),
|
||||
"translations",
|
||||
["book"],
|
||||
unique=False,
|
||||
postgresql_using="btree",
|
||||
)
|
||||
op.create_index(
|
||||
op.f("translations_author"),
|
||||
"translations",
|
||||
["author"],
|
||||
unique=False,
|
||||
postgresql_using="btree",
|
||||
)
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
@@ -108,4 +122,6 @@ def downgrade():
|
||||
op.drop_index(op.f("book_authors_author"), table_name="book_authors")
|
||||
op.drop_index(op.f("book_sequences_book"), table_name="book_sequences")
|
||||
op.drop_index(op.f("book_sequences_sequence"), table_name="book_sequences")
|
||||
op.drop_index(op.f("translations_book"), table_name="translations")
|
||||
op.drop_index(op.f("translations_author"), table_name="translations")
|
||||
# ### end Alembic commands ###
|
||||
|
||||
Reference in New Issue
Block a user