drydock/alembic/versions/4a5bef3702b_create_build_data_table.py
Scott Hussey a20ecbfba0 Statemgmt access to build data
Add statemgmt methods for accessing build data
tables.

- Add post_build_data for saving new build data
- Add get_build_data for selecting build data based
  on node name or task ID.
- YAPF formatting that was wider scope than expected

Change-Id: I415eb795e2e5cab6f6a4cc0dc90aa79497c41328
2018-01-08 13:57:21 -06:00

27 lines
522 B
Python

"""create build_data table
Revision ID: 4a5bef3702b
Revises: 9593a123e7c5
Create Date: 2017-12-15 21:15:17.884404
"""
# revision identifiers, used by Alembic.
revision = '4a5bef3702b'
down_revision = '9593a123e7c5'
branch_labels = None
depends_on = None
from alembic import op
from drydock_provisioner.statemgmt.db import tables
def upgrade():
op.create_table(tables.BuildData.__tablename__,
*tables.BuildData.__schema__)
def downgrade():
op.drop_table(tables.BuildData.__tablename__)