summaryrefslogtreecommitdiff
path: root/db/migrations_backup/0107_curly_thor.sql
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrations_backup/0107_curly_thor.sql')
-rw-r--r--db/migrations_backup/0107_curly_thor.sql12
1 files changed, 12 insertions, 0 deletions
diff --git a/db/migrations_backup/0107_curly_thor.sql b/db/migrations_backup/0107_curly_thor.sql
new file mode 100644
index 00000000..72b8e1ad
--- /dev/null
+++ b/db/migrations_backup/0107_curly_thor.sql
@@ -0,0 +1,12 @@
+CREATE TABLE "tasks" (
+ "id" varchar(30) PRIMARY KEY NOT NULL,
+ "code" varchar(128) DEFAULT concat('TASK-', to_char(nextval('tasks_code_seq'), 'FM0000')) NOT NULL,
+ "title" varchar(128),
+ "status" varchar(30) DEFAULT 'todo' NOT NULL,
+ "label" varchar(30) DEFAULT 'bug' NOT NULL,
+ "priority" varchar(30) DEFAULT 'low' NOT NULL,
+ "archived" boolean DEFAULT false NOT NULL,
+ "created_at" timestamp DEFAULT now() NOT NULL,
+ "updated_at" timestamp DEFAULT current_timestamp,
+ CONSTRAINT "tasks_code_unique" UNIQUE("code")
+);