Merge pull request #16 from Bio-OS/feat/ignore-case

feat(workflow): workflow and workspace name set to gbk_bin to support case-sensitive
This commit is contained in:
yifanchen90 2023-09-27 16:39:02 +08:00 committed by GitHub
commit ccd3121e99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ import (
type workflow struct {
ID string `gorm:"primaryKey"`
Name string `gorm:"type:varchar(200);uniqueIndex:idx_name_ws"`
Name string `gorm:"type:varchar(200) CHARACTER SET gbk COLLATE gbk_bin;not null;uniqueIndex:idx_name_ws"`
WorkspaceID string `gorm:"type:varchar(32);uniqueIndex:idx_name_ws"`
Description string
LatestVersion string

View File

@ -7,7 +7,7 @@ import (
// Workspace model.
type Workspace struct {
ID string `gorm:"primaryKey"`
Name string `gorm:"unique"`
Name string `gorm:"type:varchar(64) CHARACTER SET gbk COLLATE gbk_bin;not null;unique"`
Description string
Storage WorkspaceStorage `gorm:"serializer:json"`
CreateTime time.Time