From 64a03b5baa6fb6ed8b2dda2bf154e78d3c3e5ce0 Mon Sep 17 00:00:00 2001 From: motatoes Date: Sun, 21 Jul 2024 12:15:26 +0100 Subject: [PATCH] fix parent link migration --- ...20240721111422_digger_job_parent_link_fix.sql | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 supabase/migrations/20240721111422_digger_job_parent_link_fix.sql diff --git a/supabase/migrations/20240721111422_digger_job_parent_link_fix.sql b/supabase/migrations/20240721111422_digger_job_parent_link_fix.sql new file mode 100644 index 00000000..9664436b --- /dev/null +++ b/supabase/migrations/20240721111422_digger_job_parent_link_fix.sql @@ -0,0 +1,16 @@ +-- public.digger_job_parent_links definition + +-- Drop table + +DROP TABLE public.digger_job_parent_links; + +CREATE TABLE public.digger_job_parent_links ( + id bigserial NOT NULL, + created_at timestamptz NULL, + updated_at timestamptz NULL, + deleted_at timestamptz NULL, + digger_job_id text NULL, + parent_digger_job_id text NULL, + CONSTRAINT digger_job_parent_links_pkey PRIMARY KEY (id) +); +CREATE INDEX idx_digger_job_parent_links_deleted_at ON public.digger_job_parent_links USING btree (deleted_at); \ No newline at end of file