From b1396dcae2d613da643f9c44eb211386462f9518 Mon Sep 17 00:00:00 2001 From: fiftin Date: Thu, 7 Mar 2024 19:50:48 +0100 Subject: [PATCH] feat: add project type --- db/Migration.go | 1 + db/Project.go | 1 + db/sql/migrations/v2.9.62.sql | 1 + 3 files changed, 3 insertions(+) create mode 100644 db/sql/migrations/v2.9.62.sql diff --git a/db/Migration.go b/db/Migration.go index 1b22b542..57702ff2 100644 --- a/db/Migration.go +++ b/db/Migration.go @@ -64,6 +64,7 @@ func GetMigrations() []Migration { {Version: "2.9.46"}, {Version: "2.9.60"}, {Version: "2.9.61"}, + {Version: "2.9.62"}, } } diff --git a/db/Project.go b/db/Project.go index 859f10e7..725d26db 100644 --- a/db/Project.go +++ b/db/Project.go @@ -12,4 +12,5 @@ type Project struct { Alert bool `db:"alert" json:"alert"` AlertChat *string `db:"alert_chat" json:"alert_chat"` MaxParallelTasks int `db:"max_parallel_tasks" json:"max_parallel_tasks"` + Type string `db:"type" json:"type"` } diff --git a/db/sql/migrations/v2.9.62.sql b/db/sql/migrations/v2.9.62.sql new file mode 100644 index 00000000..f97c3d63 --- /dev/null +++ b/db/sql/migrations/v2.9.62.sql @@ -0,0 +1 @@ +alter table project add `type` varchar(20) default ''; \ No newline at end of file