mirror of https://github.com/veops/cmdb.git
alter table c_preference_relation_views column name varchar(64)
This commit is contained in:
parent
94cf6139c1
commit
658e6236ac
|
@ -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`),
|
||||
|
|
Loading…
Reference in New Issue