Skip to content

Commit

Permalink
Add first revision with test table
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodrigo Almeida committed Jun 27, 2022
1 parent 6311ccf commit 736fc4b
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
File renamed without changes.
29 changes: 29 additions & 0 deletions alembic/versions/54c42e9e879f_first_revision.py
Original file line number Diff line number Diff line change
@@ -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")

0 comments on commit 736fc4b

Please sign in to comment.