diff --git a/alembic/versions/7ff505f31b77_first_migration.py b/alembic/old_state/7ff505f31b77_first_migration.py similarity index 100% rename from alembic/versions/7ff505f31b77_first_migration.py rename to alembic/old_state/7ff505f31b77_first_migration.py diff --git a/alembic/initial_migration.sql b/alembic/old_state/initial_migration.sql similarity index 100% rename from alembic/initial_migration.sql rename to alembic/old_state/initial_migration.sql diff --git a/alembic/versions/54c42e9e879f_first_revision.py b/alembic/versions/54c42e9e879f_first_revision.py new file mode 100644 index 00000000..b2139ff5 --- /dev/null +++ b/alembic/versions/54c42e9e879f_first_revision.py @@ -0,0 +1,29 @@ +"""First revision + +Revision ID: 54c42e9e879f +Revises: +Create Date: 2022-06-27 16:34:29.607839 + +""" +import sqlalchemy as sa + +from alembic import op + +# revision identifiers, used by Alembic. +revision = "54c42e9e879f" +down_revision = None +branch_labels = None +depends_on = None + + +def upgrade() -> None: + """create test table""" + op.create_table( + "test", + sa.Column("id", sa.Integer, primary_key=True), + ) + + +def downgrade() -> None: + """drop test table""" + op.drop_table("test")