Add 'implemented' status option to Ideas collection schema

Adds migration for existing workspaces and updates the default definition
for new workspaces.
This commit is contained in:
xarmian
2026-03-26 22:30:19 +00:00
parent 82e159ffc6
commit b3909b13ee
3 changed files with 11 additions and 1 deletions
+1 -1
View File
@@ -83,7 +83,7 @@ func Defaults() []DefaultCollection {
Key: "status",
Label: "Status",
Type: "select",
Options: []string{"new", "exploring", "planned", "rejected"},
Options: []string{"new", "exploring", "planned", "implemented", "rejected"},
Default: "new",
Required: true,
},
@@ -0,0 +1,9 @@
UPDATE collections
SET schema = json_replace(
schema,
'$.fields[0].options',
json('["new","exploring","planned","implemented","rejected"]')
)
WHERE slug = 'ideas'
AND json_extract(schema, '$.fields[0].key') = 'status'
AND json_extract(schema, '$.fields[0].options') NOT LIKE '%implemented%';
+1
View File
@@ -70,6 +70,7 @@ func (s *Store) migrate() error {
"006_item_numbers.sql",
"007_comments.sql",
"008_tasks_phase_field.sql",
"009_ideas_implemented_status.sql",
}
for _, name := range migrations {