Change the size of the column datasource_name in datasource creation … (#345)

* Change the size of the column datasource_name in datasource creation table to fix a Sql server specific issue.

* Change the model according to the change of the database script done in the PR 345
This commit is contained in:
Ludovic 2016-04-14 13:32:48 +08:00 committed by Maxime Beauchemin
parent 91a3594be3
commit eb5a41728e
2 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@ def upgrade():
sa.Column('created_on', sa.DateTime(), nullable=False),
sa.Column('changed_on', sa.DateTime(), nullable=False),
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('datasource_name', sa.String(length=250), nullable=True),
sa.Column('datasource_name', sa.String(length=256), nullable=True),
sa.Column('is_featured', sa.Boolean(), nullable=True),
sa.Column('is_hidden', sa.Boolean(), nullable=True),
sa.Column('description', sa.Text(), nullable=True),

View File

@ -849,7 +849,7 @@ class DruidDatasource(Model, AuditMixinNullable, Queryable):
__tablename__ = 'datasources'
id = Column(Integer, primary_key=True)
datasource_name = Column(String(250), unique=True)
datasource_name = Column(String(256), unique=True)
is_featured = Column(Boolean, default=False)
is_hidden = Column(Boolean, default=False)
description = Column(Text)