Skip to content

Commit

Permalink
addressed the comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Nargis Sultani committed Oct 19, 2023
1 parent 7baf240 commit 82b91ac
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
1 change: 0 additions & 1 deletion alembic.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# A generic, single database configuration.


[alembic]
# path to migration scripts
script_location = ./db_revisions
Expand Down
1 change: 0 additions & 1 deletion db_revisions/script.py.mako
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,5 @@ def upgrade() -> None:
${upgrades if upgrades else "pass"}



def downgrade() -> None:
${downgrades if downgrades else "pass"}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@


def upgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
denied_domains = op.create_table(
"denied_domains",
sa.Column("domain", sa.String(), nullable=False),
Expand Down Expand Up @@ -70,17 +69,11 @@ def upgrade() -> None:
{"domain": "test3.local", "lei": "TEST3LEI"},
],
)
# ### end Alembic commands ###


def downgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
op.drop_index("ix_financial_institution_domains_lei", table_name="financial_institutions_domains")
op.drop_index("ix_financial_institution_domains_domain", table_name="financial_institutions_domains")
op.drop_table("financial_institutions_domains")
op.drop_index("ix_financial_institutions_name", table_name="financial_institutions")
op.drop_index("ix_financial_institutions_lei", table_name="financial_institutions")

op.drop_table("financial_institutions")
op.drop_index("ix_denied_domains_domain", table_name="denied_domains")

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

0 comments on commit 82b91ac

Please sign in to comment.