base of migration
This commit is contained in:
parent
2115f53f54
commit
f148a42da1
|
@ -0,0 +1,33 @@
|
|||
"""add code to device
|
||||
|
||||
Revision ID: 8cb91ad1cc40
|
||||
Revises: eca457d8b2a4
|
||||
Create Date: 2021-03-03 10:39:19.331027
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
import sqlalchemy_utils
|
||||
import citext
|
||||
import teal
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '8cb91ad1cc40'
|
||||
down_revision = 'eca457d8b2a4'
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def get_inv():
|
||||
INV = context.get_x_argument(as_dictionary=True).get('inventory')
|
||||
if not INV:
|
||||
raise ValueError("Inventory value is not specified")
|
||||
return INV
|
||||
|
||||
def upgrade():
|
||||
pass
|
||||
|
||||
|
||||
def downgrade():
|
||||
pass
|
Reference in New Issue