kopia lustrzana https://github.com/bugout-dev/moonstream
Add fixes.
rodzic
7bc7226612
commit
e1fe56a49d
db/alembic/versions
|
@ -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 ###
|
||||
|
|
Ładowanie…
Reference in New Issue