mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
Change column to longtext (#8739)
* Change column to longtext * Manual merge heads
This commit is contained in:
@@ -259,13 +259,18 @@ class TableSchema(Model, AuditMixinNullable, ExtraJSONMixin):
|
||||
expanded = Column(Boolean, default=False)
|
||||
|
||||
def to_dict(self):
|
||||
try:
|
||||
description = json.loads(self.description)
|
||||
except json.JSONDecodeError:
|
||||
description = None
|
||||
|
||||
return {
|
||||
"id": self.id,
|
||||
"tab_state_id": self.tab_state_id,
|
||||
"database_id": self.database_id,
|
||||
"schema": self.schema,
|
||||
"table": self.table,
|
||||
"description": json.loads(self.description),
|
||||
"description": description,
|
||||
"expanded": self.expanded,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user