From 82b91ac1ac07540cb4d989068f530bf20bca1974 Mon Sep 17 00:00:00 2001 From: Nargis Sultani Date: Thu, 19 Oct 2023 12:07:58 -0400 Subject: [PATCH] addressed the comments --- alembic.ini | 1 - db_revisions/script.py.mako | 1 - .../ed7dcc6128bc_create_a_baseline_migrations.py | 11 ++--------- 3 files changed, 2 insertions(+), 11 deletions(-) diff --git a/alembic.ini b/alembic.ini index 4a3b106..d00656c 100644 --- a/alembic.ini +++ b/alembic.ini @@ -1,6 +1,5 @@ # A generic, single database configuration. - [alembic] # path to migration scripts script_location = ./db_revisions diff --git a/db_revisions/script.py.mako b/db_revisions/script.py.mako index ba31c33..3cf5352 100644 --- a/db_revisions/script.py.mako +++ b/db_revisions/script.py.mako @@ -22,6 +22,5 @@ def upgrade() -> None: ${upgrades if upgrades else "pass"} - def downgrade() -> None: ${downgrades if downgrades else "pass"} \ No newline at end of file diff --git a/db_revisions/versions/ed7dcc6128bc_create_a_baseline_migrations.py b/db_revisions/versions/ed7dcc6128bc_create_a_baseline_migrations.py index 74476b6..c05c2c4 100644 --- a/db_revisions/versions/ed7dcc6128bc_create_a_baseline_migrations.py +++ b/db_revisions/versions/ed7dcc6128bc_create_a_baseline_migrations.py @@ -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), @@ -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 ###