Skip to content

Commit 1c75ae4

Browse files
authored
Merge pull request #89 from refactor-group/fix_overarching_goals_and_actions_not_saving
2 parents e516932 + 9b099ce commit 1c75ae4

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

docs/db/refactor_platform_rs.dbml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Table refactor_platform.overarching_goals {
4848
coaching_session_id uuid [note: 'The coaching session that an overarching goal is associated with']
4949
title varchar [note: 'A short description of an overarching goal']
5050
body varchar [note: 'Main text of the overarching goal supporting Markdown']
51-
status status [not null]
51+
status refactor_platform.status [not null]
5252
status_changed_at timestamptz
5353
completed_at timestamptz [note: 'The date and time an overarching goal was completed']
5454
created_at timestamptz [not null, default: `now()`]
@@ -82,13 +82,13 @@ Table refactor_platform.actions {
8282
body varchar [note: 'Main text of the action supporting Markdown']
8383
user_id uuid [not null, note: 'User that created (owns) the action']
8484
due_by timestamptz
85-
status status [not null]
85+
status refactor_platform.status [not null]
8686
status_changed_at timestamptz [not null, default: `now()`]
8787
created_at timestamptz [not null, default: `now()`]
8888
updated_at timestamptz [not null, default: `now()`]
8989
}
9090

91-
enum status {
91+
enum refactor_platform.status {
9292
not_started
9393
in_progress
9494
completed

migration/src/refactor_platform_rs.sql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
-- SQL dump generated using DBML (dbml-lang.org)
22
-- Database: PostgreSQL
3-
-- Generated at: 2024-12-09T16:59:54.815Z
3+
-- Generated at: 2024-12-16T05:18:20.372Z
44

55

6-
CREATE TYPE "status" AS ENUM (
6+
CREATE TYPE "refactor_platform"."status" AS ENUM (
77
'not_started',
88
'in_progress',
99
'completed',
@@ -55,7 +55,7 @@ CREATE TABLE "refactor_platform"."overarching_goals" (
5555
"coaching_session_id" uuid,
5656
"title" varchar,
5757
"body" varchar,
58-
"status" status NOT NULL,
58+
"status" refactor_platform.status NOT NULL,
5959
"status_changed_at" timestamptz,
6060
"completed_at" timestamptz,
6161
"created_at" timestamptz NOT NULL DEFAULT (now()),
@@ -86,7 +86,7 @@ CREATE TABLE "refactor_platform"."actions" (
8686
"body" varchar,
8787
"user_id" uuid NOT NULL,
8888
"due_by" timestamptz,
89-
"status" status NOT NULL,
89+
"status" refactor_platform.status NOT NULL,
9090
"status_changed_at" timestamptz NOT NULL DEFAULT (now()),
9191
"created_at" timestamptz NOT NULL DEFAULT (now()),
9292
"updated_at" timestamptz NOT NULL DEFAULT (now())

0 commit comments

Comments
 (0)