Skip to content

Commit

Permalink
server: remove donations removal from migration
Browse files Browse the repository at this point in the history
  • Loading branch information
frankie567 committed Nov 7, 2024
1 parent 19fb15c commit 31ed96c
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions server/migrations/versions/2024-11-06-1405_remove_donation.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,29 +261,29 @@ def upgrade() -> None:
"""
)

op.drop_index("ix_donations_by_organization_id", table_name="donations")
op.drop_index("ix_donations_by_user_id", table_name="donations")
op.drop_index("ix_donations_charge_id", table_name="donations")
op.drop_index("ix_donations_created_at", table_name="donations")
op.drop_index("ix_donations_deleted_at", table_name="donations")
op.drop_index("ix_donations_email", table_name="donations")
op.drop_index("ix_donations_modified_at", table_name="donations")
op.drop_index("ix_donations_on_behalf_of_organization_id", table_name="donations")
op.drop_index("ix_donations_payment_id", table_name="donations")
op.drop_index("ix_held_balances_donation_id", table_name="held_balances")
op.drop_constraint(
"held_balances_donation_id_fkey", "held_balances", type_="foreignkey"
)
op.drop_column("held_balances", "donation_id")
op.drop_column("organizations", "donations_enabled")
# op.drop_index("ix_donations_by_organization_id", table_name="donations")
# op.drop_index("ix_donations_by_user_id", table_name="donations")
# op.drop_index("ix_donations_charge_id", table_name="donations")
# op.drop_index("ix_donations_created_at", table_name="donations")
# op.drop_index("ix_donations_deleted_at", table_name="donations")
# op.drop_index("ix_donations_email", table_name="donations")
# op.drop_index("ix_donations_modified_at", table_name="donations")
# op.drop_index("ix_donations_on_behalf_of_organization_id", table_name="donations")
# op.drop_index("ix_donations_payment_id", table_name="donations")
# op.drop_index("ix_held_balances_donation_id", table_name="held_balances")
# op.drop_constraint(
# "held_balances_donation_id_fkey", "held_balances", type_="foreignkey"
# )
# op.drop_column("held_balances", "donation_id")
# op.drop_column("organizations", "donations_enabled")

op.drop_index("ix_transactions_donation_id", table_name="transactions")
op.drop_constraint(
"transactions_donation_id_fkey", "transactions", type_="foreignkey"
)
op.drop_column("transactions", "donation_id")
# op.drop_index("ix_transactions_donation_id", table_name="transactions")
# op.drop_constraint(
# "transactions_donation_id_fkey", "transactions", type_="foreignkey"
# )
# op.drop_column("transactions", "donation_id")

op.drop_table("donations")
# op.drop_table("donations")
# ### end Alembic commands ###


Expand Down

0 comments on commit 31ed96c

Please sign in to comment.