Keep db model and migration scripts in sync
We seem to be using sqlalchemy.Text for 'status_reason' column for some tables in model and heat type LONGTEXT in migration scripts. Change-Id: I8b792936722f6fed2dd4e579aa41f6bf6aa27f7c
This commit is contained in:
parent
d8354d908e
commit
96c4dbe3ea
@ -91,7 +91,7 @@ def upgrade(migrate_engine):
|
|||||||
sqlalchemy.Column('owner_id', sqlalchemy.String(36)),
|
sqlalchemy.Column('owner_id', sqlalchemy.String(36)),
|
||||||
sqlalchemy.Column('action', sqlalchemy.String(255)),
|
sqlalchemy.Column('action', sqlalchemy.String(255)),
|
||||||
sqlalchemy.Column('status', sqlalchemy.String(255)),
|
sqlalchemy.Column('status', sqlalchemy.String(255)),
|
||||||
sqlalchemy.Column('status_reason', types.LongText),
|
sqlalchemy.Column('status_reason', sqlalchemy.Text),
|
||||||
sqlalchemy.Column('timeout', sqlalchemy.Integer),
|
sqlalchemy.Column('timeout', sqlalchemy.Integer),
|
||||||
sqlalchemy.Column('tenant', sqlalchemy.String(256)),
|
sqlalchemy.Column('tenant', sqlalchemy.String(256)),
|
||||||
sqlalchemy.Column('disable_rollback', sqlalchemy.Boolean,
|
sqlalchemy.Column('disable_rollback', sqlalchemy.Boolean,
|
||||||
@ -124,7 +124,7 @@ def upgrade(migrate_engine):
|
|||||||
sqlalchemy.Column('updated_at', sqlalchemy.DateTime),
|
sqlalchemy.Column('updated_at', sqlalchemy.DateTime),
|
||||||
sqlalchemy.Column('action', sqlalchemy.String(255)),
|
sqlalchemy.Column('action', sqlalchemy.String(255)),
|
||||||
sqlalchemy.Column('status', sqlalchemy.String(255)),
|
sqlalchemy.Column('status', sqlalchemy.String(255)),
|
||||||
sqlalchemy.Column('status_reason', types.LongText),
|
sqlalchemy.Column('status_reason', sqlalchemy.Text),
|
||||||
sqlalchemy.Column('stack_id', sqlalchemy.String(36),
|
sqlalchemy.Column('stack_id', sqlalchemy.String(36),
|
||||||
sqlalchemy.ForeignKey('stack.id'), nullable=False),
|
sqlalchemy.ForeignKey('stack.id'), nullable=False),
|
||||||
sqlalchemy.Column('rsrc_metadata', types.LongText),
|
sqlalchemy.Column('rsrc_metadata', types.LongText),
|
||||||
@ -268,7 +268,7 @@ def upgrade(migrate_engine):
|
|||||||
sqlalchemy.Column('output_values', types.Json),
|
sqlalchemy.Column('output_values', types.Json),
|
||||||
sqlalchemy.Column('action', sqlalchemy.String(255)),
|
sqlalchemy.Column('action', sqlalchemy.String(255)),
|
||||||
sqlalchemy.Column('status', sqlalchemy.String(255)),
|
sqlalchemy.Column('status', sqlalchemy.String(255)),
|
||||||
sqlalchemy.Column('status_reason', types.LongText),
|
sqlalchemy.Column('status_reason', sqlalchemy.Text),
|
||||||
sqlalchemy.Column('tenant', sqlalchemy.String(64),
|
sqlalchemy.Column('tenant', sqlalchemy.String(64),
|
||||||
nullable=False,
|
nullable=False,
|
||||||
index=True),
|
index=True),
|
||||||
|
Loading…
Reference in New Issue
Block a user