mirror of https://github.com/apache/superset.git
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:
parent
91a3594be3
commit
eb5a41728e
|
@ -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),
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue