cff7420cff
- Some status changes in a task may have additional information that is referenced by a URI link. Support describing these links and returning them via API. - Refactor alembic stuff to better handle table schema updates - Add unit tests Change-Id: Iae63a9716f2522578be0244925fc274a4338eac4
27 lines
526 B
Python
27 lines
526 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.__baseschema__)
|
|
|
|
|
|
def downgrade():
|
|
op.drop_table(tables.BuildData.__tablename__)
|