mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-08-16 18:00:23 +03:00
Add seed ingestions to supabase migrations
This commit is contained in:
parent
a95e311712
commit
b23c8073af
17
supabase/migrations/20240402015128_seed-ingestions.sql
Normal file
17
supabase/migrations/20240402015128_seed-ingestions.sql
Normal file
@ -0,0 +1,17 @@
|
||||
INSERT INTO "public"."ingestions" ("name", "id", "brain_id_required", "file_1_required", "url_required")
|
||||
SELECT 'summary', 'bc414385-342e-49fc-b252-3529c935c63a', true, true, false
|
||||
WHERE NOT EXISTS (
|
||||
SELECT 1 FROM "public"."ingestions" WHERE "id" = 'bc414385-342e-49fc-b252-3529c935c63a'
|
||||
);
|
||||
|
||||
INSERT INTO "public"."ingestions" ("name", "id", "brain_id_required", "file_1_required", "url_required")
|
||||
SELECT 'audio_transcript', 'c502a10d-5a98-40f9-9699-a65d7ece37de', true, true, false
|
||||
WHERE NOT EXISTS (
|
||||
SELECT 1 FROM "public"."ingestions" WHERE "id" = 'c502a10d-5a98-40f9-9699-a65d7ece37de'
|
||||
);
|
||||
|
||||
INSERT INTO "public"."ingestions" ("name", "id", "brain_id_required", "file_1_required", "url_required")
|
||||
SELECT 'crawler', '948ae685-5710-4dde-bb80-36ce0097ca7b', true, false, true
|
||||
WHERE NOT EXISTS (
|
||||
SELECT 1 FROM "public"."ingestions" WHERE "id" = '948ae685-5710-4dde-bb80-36ce0097ca7b'
|
||||
);
|
@ -200,21 +200,6 @@ INSERT INTO "public"."brains_users" ("brain_id", "rights", "default_brain", "use
|
||||
|
||||
|
||||
|
||||
--
|
||||
-- Data for Name: composite_brain_connections; Type: TABLE DATA; Schema: public; Owner: postgres
|
||||
--
|
||||
|
||||
|
||||
|
||||
--
|
||||
-- Data for Name: ingestions; Type: TABLE DATA; Schema: public; Owner: postgres
|
||||
--
|
||||
|
||||
INSERT INTO "public"."ingestions" ("name", "id", "brain_id_required", "file_1_required", "url_required") VALUES
|
||||
('summary', 'bc414385-342e-49fc-b252-3529c935c63a', true, true, false),
|
||||
('audio_transcript', 'c502a10d-5a98-40f9-9699-a65d7ece37de', true, true, false),
|
||||
('crawler', '948ae685-5710-4dde-bb80-36ce0097ca7b', true, false, true);
|
||||
|
||||
|
||||
--
|
||||
-- Data for Name: integrations; Type: TABLE DATA; Schema: public; Owner: postgres
|
||||
|
Loading…
Reference in New Issue
Block a user