From 658e6236ac0ebe34d395119c98819f5eae21ef9a Mon Sep 17 00:00:00 2001 From: pycook Date: Sun, 23 Feb 2020 23:13:22 +0800 Subject: [PATCH] alter table c_preference_relation_views column name varchar(64) --- cmdb-api/api/models/cmdb.py | 2 +- docs/cmdb.sql | 2 +- docs/cmdb_en.sql | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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`),