From b5135f795a999bcf81bb6575daee62f37dc14bb5 Mon Sep 17 00:00:00 2001 From: SoXX Date: Sat, 28 Dec 2024 22:06:47 +0100 Subject: [PATCH] feat: Add new tag types - Contributor - Unknown --- .../migrations/007_additional_tag_types.sql | 4 ++++ pkg/models/const.go | 18 ++++++++++-------- 2 files changed, 14 insertions(+), 8 deletions(-) create mode 100644 pkg/database/migrations/007_additional_tag_types.sql diff --git a/pkg/database/migrations/007_additional_tag_types.sql b/pkg/database/migrations/007_additional_tag_types.sql new file mode 100644 index 0000000..088af3a --- /dev/null +++ b/pkg/database/migrations/007_additional_tag_types.sql @@ -0,0 +1,4 @@ +-- +migrate Up + +INSERT INTO tag_types (name) VALUES ('Contributor'); +INSERT INTO tag_types (name) VALUES ('Unknown'); diff --git a/pkg/models/const.go b/pkg/models/const.go index abf13d9..18d5df9 100644 --- a/pkg/models/const.go +++ b/pkg/models/const.go @@ -44,14 +44,16 @@ const ( ) const ( - General TagType = "general" - Species TagType = "species" - Character TagType = "character" - Artist TagType = "artist" - Lore TagType = "lore" - Meta TagType = "meta" - Invalid TagType = "invalid" - Copyright TagType = "copyright" + General TagType = "general" + Species TagType = "species" + Character TagType = "character" + Artist TagType = "artist" + Lore TagType = "lore" + Meta TagType = "meta" + Invalid TagType = "invalid" + Copyright TagType = "copyright" + Contributor TagType = "Contributor" + UnknownTagType TagType = "Unknown" ) const (