Fix DB DataError

Some model parameters have been added by the below bp.

Add support models
https://blueprints.launchpad.net/meteos/+spec/add-support-models

It makes model_params longer than 255 characters.

As the result, DB Error occurred when creating model.
Change column type of model_params from String(255) to Text().

Change-Id: I8123408b76b90d3b390a216413b5e455b86fdec5
Closes-Bug: 1667173
This commit is contained in:
Hiroyuki Eguchi 2017-02-23 11:16:28 +09:00
parent 7d2d5ddfb0
commit d9d14b05c1
2 changed files with 2 additions and 2 deletions

View File

@ -161,7 +161,7 @@ def upgrade():
Column('display_name', String(length=255)),
Column('display_description', String(length=255)),
Column('model_type', String(length=255)),
Column('model_params', String(length=255)),
Column('model_params', Text),
Column('stdout', Text),
Column('stderr', Text),
mysql_engine='InnoDB',

View File

@ -164,7 +164,7 @@ class Model(BASE, MeteosBase):
display_description = Column(String(255))
model_type = Column(String(255))
model_params = Column(String(255))
model_params = Column(Text)
status = Column(String(255))
launched_at = Column(DateTime)