3
0

add(crm): added field json to crm_content table

This commit is contained in:
Mitja Zivkovic
2018-12-04 12:57:15 +01:00
committed by Denis Arh
parent cebc4f1569
commit 687cd0b2e0
3 changed files with 3 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
ALTER TABLE `crm_content` ADD `json` json DEFAULT NULL COMMENT 'Content in JSON format.' AFTER `user_id`;

View File

@@ -19,7 +19,7 @@ type (
Page *Page `json:"page,omitempty"`
Fields types.JSONText `json:"fields,omitempty" db:"-"`
Fields types.JSONText `json:"fields,omitempty" db:"json"`
CreatedAt time.Time `db:"created_at" json:"createdAt,omitempty"`
UpdatedAt *time.Time `db:"updated_at" json:"updatedAt,omitempty"`