Skip to content

Commit

Permalink
URSA-334 > Alembic version num does not update (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
ElenaHenderson committed May 20, 2021
1 parent 5f62a83 commit 5856bac
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 3 deletions.
6 changes: 3 additions & 3 deletions alembic.ini
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,17 @@ keys = console
keys = generic

[logger_root]
level = WARN
level = DEBUG
handlers = console
qualname =

[logger_sqlalchemy]
level = WARN
level = DEBUG
handlers =
qualname = sqlalchemy.engine

[logger_alembic]
level = INFO
level = DEBUG
handlers =
qualname = alembic

Expand Down
28 changes: 28 additions & 0 deletions migrations/versions/6f7657ee9b18_new.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
"""new
Revision ID: 6f7657ee9b18
Revises: 8ade76a4ebc0
Create Date: 2021-05-20 09:50:18.039645
"""
from alembic import op
from sqlalchemy import MetaData


revision = "6f7657ee9b18"
down_revision = "8ade76a4ebc0"
branch_labels = None
depends_on = None


def upgrade():
connection = op.get_bind()
meta = MetaData()
meta.reflect(bind=connection)
machine_table = meta.tables["machine"]
machines = connection.execute(machine_table.select())
print(machines)


def downgrade():
pass

0 comments on commit 5856bac

Please sign in to comment.