mirror of
https://github.com/apache/superset.git
synced 2026-04-18 15:44:57 +00:00
refactor: Updates some database columns to MediumText (#27119)
This commit is contained in:
committed by
GitHub
parent
8235d59e56
commit
3d645fd8e9
@@ -55,7 +55,7 @@ from superset.models.helpers import (
|
||||
)
|
||||
from superset.sql_parse import CtasMethod, ParsedQuery, Table
|
||||
from superset.sqllab.limiting_factor import LimitingFactor
|
||||
from superset.utils.core import get_column_name, QueryStatus, user_label
|
||||
from superset.utils.core import get_column_name, MediumText, QueryStatus, user_label
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from superset.connectors.sqla.models import TableColumn
|
||||
@@ -88,11 +88,11 @@ class Query(
|
||||
tab_name = Column(String(256))
|
||||
sql_editor_id = Column(String(256))
|
||||
schema = Column(String(256))
|
||||
sql = Column(Text)
|
||||
sql = Column(MediumText())
|
||||
# Query to retrieve the results,
|
||||
# used only in case of select_as_cta_used is true.
|
||||
select_sql = Column(Text)
|
||||
executed_sql = Column(Text)
|
||||
select_sql = Column(MediumText())
|
||||
executed_sql = Column(MediumText())
|
||||
# Could be configured in the superset config.
|
||||
limit = Column(Integer)
|
||||
limiting_factor = Column(
|
||||
@@ -365,7 +365,7 @@ class SavedQuery(AuditMixinNullable, ExtraJSONMixin, ImportExportMixin, Model):
|
||||
schema = Column(String(128))
|
||||
label = Column(String(256))
|
||||
description = Column(Text)
|
||||
sql = Column(Text)
|
||||
sql = Column(MediumText())
|
||||
template_parameters = Column(Text)
|
||||
user = relationship(
|
||||
security_manager.user_model,
|
||||
@@ -467,7 +467,7 @@ class TabState(AuditMixinNullable, ExtraJSONMixin, Model):
|
||||
)
|
||||
|
||||
# the query in the textarea, and results (if any)
|
||||
sql = Column(Text)
|
||||
sql = Column(MediumText())
|
||||
query_limit = Column(Integer)
|
||||
|
||||
# latest query that was run
|
||||
|
||||
Reference in New Issue
Block a user