Skip to content

Commit

Permalink
Added DB migration script
Browse files Browse the repository at this point in the history
  • Loading branch information
namesty committed Jan 26, 2024
1 parent af485ee commit 6735581
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions web/supabase/migrations/20240126113522_logs.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@

create type "public"."step_name" as enum ('FETCH_PROJECTS', 'EVALUATE_PROJECTS', 'ANALYZE_FUNDING', 'SYNTHESIZE_RESULTS');

create type "public"."step_status" as enum ('NOT_STARTED', 'IN_PROGRESS', 'COMPLETED', 'ERRORED');

alter table "public"."logs" drop column "message";

alter table "public"."logs" add column "ended_at" timestamp with time zone;

alter table "public"."logs" add column "status" step_status not null;

alter table "public"."logs" add column "step_name" step_name not null;

alter table "public"."logs" add column "value" text;

0 comments on commit 6735581

Please sign in to comment.