summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Verboso <fverboso@unime.it>2018-09-25 14:53:49 +0200
committerFabio Verboso <fverboso@unime.it>2018-09-25 14:53:49 +0200
commit51705e3d288a758beb81d041c67a2c975e8f8b84 (patch)
tree7c44b95b9bd8bf671293ce1d131d5676711a4a8e
parent607e17a5b88298a8aede32e85ecf18fcac8c9308 (diff)
Fix missing fleet column into table boards
Notes
Notes (review): Code-Review+2: Fabio Verboso <fverboso@unime.it> Workflow+1: Fabio Verboso <fverboso@unime.it> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Tue, 25 Sep 2018 15:29:05 +0000 Reviewed-on: https://review.openstack.org/605064 Project: openstack/iotronic Branch: refs/heads/master
-rw-r--r--iotronic/db/sqlalchemy/alembic/versions/9c5c34dfd9f1_add_boards_in_fleet.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/iotronic/db/sqlalchemy/alembic/versions/9c5c34dfd9f1_add_boards_in_fleet.py b/iotronic/db/sqlalchemy/alembic/versions/9c5c34dfd9f1_add_boards_in_fleet.py
index d92fa2c..e812e14 100644
--- a/iotronic/db/sqlalchemy/alembic/versions/9c5c34dfd9f1_add_boards_in_fleet.py
+++ b/iotronic/db/sqlalchemy/alembic/versions/9c5c34dfd9f1_add_boards_in_fleet.py
@@ -16,9 +16,12 @@ revision = '9c5c34dfd9f1'
16down_revision = 'b578199e4e64' 16down_revision = 'b578199e4e64'
17 17
18from alembic import op 18from alembic import op
19import sqlalchemy as sa
19 20
20 21
21def upgrade(): 22def upgrade():
22 # ### commands auto generated by Alembic - please adjust! ### 23 # ### commands auto generated by Alembic - please adjust! ###
24 op.add_column('boards', sa.Column('fleet', sa.String(length=36),
25 nullable=True))
23 op.create_foreign_key(None, 'boards', 'fleets', ['fleet'], ['uuid']) 26 op.create_foreign_key(None, 'boards', 'fleets', ['fleet'], ['uuid'])
24 # ### end Alembic commands ### 27 # ### end Alembic commands ###