From 9f1564a5335ec7dbb29af31dfd07946d4dfa170d Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Wed, 18 Nov 2020 19:15:30 +0100 Subject: [PATCH] add column inuse to device table --- .../migrations/versions/e93aec8fc41f_added_assigned_action.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ereuse_devicehub/migrations/versions/e93aec8fc41f_added_assigned_action.py b/ereuse_devicehub/migrations/versions/e93aec8fc41f_added_assigned_action.py index b3c45ca7..effd4dcf 100644 --- a/ereuse_devicehub/migrations/versions/e93aec8fc41f_added_assigned_action.py +++ b/ereuse_devicehub/migrations/versions/e93aec8fc41f_added_assigned_action.py @@ -45,6 +45,7 @@ def upgrade(): schema=f'{get_inv()}' ) + op.add_column('device', sa.Column('inuse', sa.Boolean(), nullable=True), schema=f'{get_inv()}') def downgrade(): op.drop_table('allocate', schema=f'{get_inv()}')