Skip to content

Commit

Permalink
Fix the invalid type 'status' when inserting OverarchingGoals and Act…
Browse files Browse the repository at this point in the history
…ions
  • Loading branch information
jhodapp committed Dec 18, 2024
1 parent 5c33453 commit 46fd4ee
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions docs/db/refactor_platform_rs.dbml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Table refactor_platform.overarching_goals {
coaching_session_id uuid [note: 'The coaching session that an overarching goal is associated with']
title varchar [note: 'A short description of an overarching goal']
body varchar [note: 'Main text of the overarching goal supporting Markdown']
status status [not null]
status refactor_platform.status [not null]
status_changed_at timestamptz
completed_at timestamptz [note: 'The date and time an overarching goal was completed']
created_at timestamptz [not null, default: `now()`]
Expand Down Expand Up @@ -82,13 +82,13 @@ Table refactor_platform.actions {
body varchar [note: 'Main text of the action supporting Markdown']
user_id uuid [not null, note: 'User that created (owns) the action']
due_by timestamptz
status status [not null]
status refactor_platform.status [not null]
status_changed_at timestamptz [not null, default: `now()`]
created_at timestamptz [not null, default: `now()`]
updated_at timestamptz [not null, default: `now()`]
}

enum status {
enum refactor_platform.status {
not_started
in_progress
completed
Expand Down
8 changes: 4 additions & 4 deletions migration/src/refactor_platform_rs.sql
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
-- SQL dump generated using DBML (dbml.dbdiagram.io)
-- Database: PostgreSQL
-- Generated at: 2024-12-03T17:35:25.615Z
-- Generated at: 2024-12-16T05:18:20.372Z


CREATE TYPE "status" AS ENUM (
CREATE TYPE "refactor_platform"."status" AS ENUM (
'not_started',
'in_progress',
'completed',
Expand Down Expand Up @@ -55,7 +55,7 @@ CREATE TABLE "refactor_platform"."overarching_goals" (
"coaching_session_id" uuid,
"title" varchar,
"body" varchar,
"status" status NOT NULL,
"status" refactor_platform.status NOT NULL,
"status_changed_at" timestamptz,
"completed_at" timestamptz,
"created_at" timestamptz NOT NULL DEFAULT (now()),
Expand Down Expand Up @@ -86,7 +86,7 @@ CREATE TABLE "refactor_platform"."actions" (
"body" varchar,
"user_id" uuid NOT NULL,
"due_by" timestamptz,
"status" status NOT NULL,
"status" refactor_platform.status NOT NULL,
"status_changed_at" timestamptz NOT NULL DEFAULT (now()),
"created_at" timestamptz NOT NULL DEFAULT (now()),
"updated_at" timestamptz NOT NULL DEFAULT (now())
Expand Down

0 comments on commit 46fd4ee

Please sign in to comment.