add multiple statuses to proejcts, though it's a bit hacked on.
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-01-20 22:05:52 +01:00
parent 01437c684f
commit f22b9b4947
15 changed files with 214 additions and 70 deletions
@@ -0,0 +1,11 @@
-- +goose Up
-- +goose StatementBegin
ALTER TABLE project
ADD COLUMN status_tag TEXT DEFAULT NULL;
-- +goose StatementEnd
-- +goose Down
-- +goose StatementBegin
ALTER TABLE project
DROP COLUMN status_tag;
-- +goose StatementEnd
@@ -0,0 +1,9 @@
-- +goose Up
-- +goose StatementBegin
UPDATE project SET status_tag='completed' WHERE active=false;
-- +goose StatementEnd
-- +goose Down
-- +goose StatementBegin
SELECT 'Nothing to do';
-- +goose StatementEnd