diff --git a/cmdb-api/api/models/cmdb.py b/cmdb-api/api/models/cmdb.py index 448ad3c..97ac349 100644 --- a/cmdb-api/api/models/cmdb.py +++ b/cmdb-api/api/models/cmdb.py @@ -317,5 +317,5 @@ class PreferenceTreeView(Model): class PreferenceRelationView(Model): __tablename__ = "c_preference_relation_views" - name = db.Column(db.String(8), index=True, nullable=False) + name = db.Column(db.String(64), index=True, nullable=False) cr_ids = db.Column(db.TEXT) # [{parent_id: x, child_id: y}] TODO: JSON diff --git a/docs/cmdb.sql b/docs/cmdb.sql index 12582e2..e15ac05 100644 --- a/docs/cmdb.sql +++ b/docs/cmdb.sql @@ -828,7 +828,7 @@ CREATE TABLE `c_preference_relation_views` ( `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(8) NOT NULL, + `name` varchar(64) NOT NULL, `cr_ids` text, PRIMARY KEY (`id`), KEY `ix_c_preference_relation_views_deleted` (`deleted`), diff --git a/docs/cmdb_en.sql b/docs/cmdb_en.sql index 841aa6d..40881a9 100644 --- a/docs/cmdb_en.sql +++ b/docs/cmdb_en.sql @@ -828,7 +828,7 @@ CREATE TABLE `c_preference_relation_views` ( `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(8) NOT NULL, + `name` varchar(64) NOT NULL, `cr_ids` text, PRIMARY KEY (`id`), KEY `ix_c_preference_relation_views_deleted` (`deleted`),