Skip to content

Commit 51ea490

Browse files
committed
fixup! chore: pluralize table names
1 parent 0755398 commit 51ea490

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

database/migrations/000004_jobs.up.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ CREATE TYPE log_source AS ENUM (
4949

5050
CREATE TABLE IF NOT EXISTS provisioner_job_logs (
5151
id uuid NOT NULL UNIQUE,
52-
job_id uuid NOT NULL REFERENCES provisioner_job (id) ON DELETE CASCADE,
52+
job_id uuid NOT NULL REFERENCES provisioner_jobs (id) ON DELETE CASCADE,
5353
created_at timestamptz NOT NULL,
5454
source log_source NOT NULL,
5555
level log_level NOT NULL,
@@ -59,7 +59,7 @@ CREATE TABLE IF NOT EXISTS provisioner_job_logs (
5959
CREATE TABLE workspace_resources (
6060
id uuid NOT NULL UNIQUE,
6161
created_at timestamptz NOT NULL,
62-
job_id uuid NOT NULL REFERENCES provisioner_job(id) ON DELETE CASCADE,
62+
job_id uuid NOT NULL REFERENCES provisioner_jobs (id) ON DELETE CASCADE,
6363
transition workspace_transition NOT NULL,
6464
type varchar(256) NOT NULL,
6565
name varchar(64) NOT NULL,
@@ -70,7 +70,7 @@ CREATE TABLE workspace_agents (
7070
id uuid NOT NULL UNIQUE,
7171
created_at timestamptz NOT NULL,
7272
updated_at timestamptz,
73-
resource_id uuid NOT NULL REFERENCES workspace_resource (id) ON DELETE CASCADE,
73+
resource_id uuid NOT NULL REFERENCES workspace_resources (id) ON DELETE CASCADE,
7474
auth_token uuid NOT NULL UNIQUE,
7575
auth_instance_id varchar(64),
7676
environment_variables jsonb,

0 commit comments

Comments
 (0)