Skip to content

Commit

Permalink
add runs table migration
Browse files Browse the repository at this point in the history
  • Loading branch information
motatoes committed Aug 12, 2024
1 parent 6e0761f commit ab1c20a
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions supabase/migrations/20240811210945_project_runs_table.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
CREATE TABLE public.project_runs (
id uuid NOT NULL,
created_at timestamptz NULL,
updated_at timestamptz NULL,
deleted_at timestamptz NULL,
project_id uuid NULL,
started_at int8 NULL,
ended_at int8 NULL,
status text NULL,
command text NULL,
"output" text NULL,
actor_username text NULL,
CONSTRAINT project_runs_pkey PRIMARY KEY (id)
);
CREATE INDEX idx_project_runs_deleted_at ON public.project_runs USING btree (deleted_at);


-- public.project_runs foreign keys

ALTER TABLE public.project_runs ADD CONSTRAINT fk_project_runs_project FOREIGN KEY (project_id) REFERENCES public.projects(id);

0 comments on commit ab1c20a

Please sign in to comment.