pull/225/head
Andrey Dolgolev 2021-09-02 14:46:16 +03:00
rodzic 7bc7226612
commit e1fe56a49d
1 zmienionych plików z 2 dodań i 5 usunięć

Wyświetl plik

@ -33,17 +33,14 @@ def upgrade():
sa.UniqueConstraint("id", name=op.f("uq_opensea_crawler_state_id")),
)
op.drop_constraint("uq_ethereum_labels_label", "ethereum_labels", type_="unique")
op.create_index(
op.f("idx_label_name"), "ethereum_labels", [sa.text("(label_data->'name')")]
op.execute(
f"CREATE INDEX idx_ethereum_labels_opensea_nft_name ON ethereum_labels((label_data->>'name')) where label='opensea_nft';"
)
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.create_unique_constraint(
"uq_ethereum_labels_label", "ethereum_labels", ["label", "address_id"]
)
op.drop_table("opensea_crawler_state")
op.drop_index("idx_label_name")
# ### end Alembic commands ###