File tree Expand file tree Collapse file tree 1 file changed +8
-17
lines changed
apps/hasura/migrations/masterbots/1718416395664_create_table_models_enum Expand file tree Collapse file tree 1 file changed +8
-17
lines changed Original file line number Diff line number Diff line change 11CREATE TABLE IF NOT EXISTS public .models_enum (
2- name TEXT UNIQUE NOT NULL ,
3- value TEXT UNIQUE
2+ name TEXT UNIQUE PRIMARY KEY NOT NULL ,
3+ value TEXT UNIQUE NOT NULL
44);
55
6- INSERT INTO public .models_enum (name) VALUES
7- (' perplexity' ),
8- (' anthropic' ),
9- (' openAi' ),
10- (' wordware' )
11- ON CONFLICT (name) DO NOTHING;
12-
13- UPDATE public .models_enum
14- SET value = CASE name
15- WHEN ' perplexity' THEN ' llama3_7B'
16- WHEN ' anthropic' THEN ' claude3_haiku'
17- WHEN ' openAi' THEN ' gpt-4o-mini'
18- WHEN ' wordware' THEN ' wordware'
19- ELSE value
20- END;
6+ INSERT INTO public .models_enum (name, value) VALUES
7+ (' perplexity' , ' llama3_7B' ),
8+ (' anthropic' , ' claude3_haiku' ),
9+ (' openAi' , ' gpt-4o-mini' ),
10+ (' wordware' , ' wordware' )
11+ ON CONFLICT (name) DO UPDATE SET value = EXCLUDED .value ;
You can’t perform that action at this time.
0 commit comments