feat(postgres): added copyright as enum
Signed-off-by: soxx <soxx@fenpa.ws>
This commit is contained in:
parent
4690ce135d
commit
e09d39dd02
@ -12,7 +12,8 @@ CREATE TYPE TagType AS ENUM (
|
|||||||
'artist',
|
'artist',
|
||||||
'lore',
|
'lore',
|
||||||
'meta',
|
'meta',
|
||||||
'invalid'
|
'invalid',
|
||||||
|
'copyright'
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE TABLE "Post"
|
CREATE TABLE "Post"
|
||||||
|
@ -20,6 +20,7 @@ const (
|
|||||||
Lore TagType = "lore"
|
Lore TagType = "lore"
|
||||||
Meta TagType = "meta"
|
Meta TagType = "meta"
|
||||||
Invalid TagType = "invalid"
|
Invalid TagType = "invalid"
|
||||||
|
Copyright TagType = "copyright"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (r *Rating) Convert(e621Rating string) {
|
func (r *Rating) Convert(e621Rating string) {
|
||||||
|
Reference in New Issue
Block a user