mirror of
https://github.com/veops/cmdb.git
synced 2025-08-09 19:40:40 +08:00
alter table c_preference_relation_views column name varchar(64)
This commit is contained in:
@@ -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
|
||||
|
@@ -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`),
|
||||
|
@@ -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`),
|
||||
|
Reference in New Issue
Block a user