-
Notifications
You must be signed in to change notification settings - Fork 336
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: querier supports show enum tags by language
- Loading branch information
1 parent
eeb3d10
commit 78c4140
Showing
20 changed files
with
404 additions
and
269 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
server/controller/db/mysql/migrator/schema/rawsql/issu/6.6.1.17.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
DROP TABLE IF EXISTS ch_string_enum; | ||
DROP TABLE IF EXISTS ch_int_enum; | ||
|
||
CREATE TABLE IF NOT EXISTS ch_string_enum ( | ||
tag_name VARCHAR(256) NOT NULL , | ||
value VARCHAR(256) NOT NULL, | ||
name_zh VARCHAR(256) , | ||
name_en VARCHAR(256) , | ||
description_zh VARCHAR(256) , | ||
description_en VARCHAR(256) , | ||
updated_at DATETIME NOT NULL ON UPDATE CURRENT_TIMESTAMP DEFAULT CURRENT_TIMESTAMP, | ||
PRIMARY KEY (tag_name,value) | ||
)ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; | ||
|
||
CREATE TABLE IF NOT EXISTS ch_int_enum ( | ||
tag_name VARCHAR(256) NOT NULL, | ||
value INTEGER DEFAULT 0, | ||
name_zh VARCHAR(256) , | ||
name_en VARCHAR(256) , | ||
description_zh VARCHAR(256) , | ||
description_en VARCHAR(256) , | ||
updated_at DATETIME NOT NULL ON UPDATE CURRENT_TIMESTAMP DEFAULT CURRENT_TIMESTAMP, | ||
PRIMARY KEY (tag_name,value) | ||
)ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; | ||
|
||
-- update db_version to latest, remeber update DB_VERSION_EXPECT in migrate/init.go | ||
UPDATE db_version SET version='6.6.1.17'; | ||
-- modify end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.