-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Rodrigo Almeida
committed
Jun 27, 2022
1 parent
6311ccf
commit 736fc4b
Showing
3 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |