From 6f398fd5d8e5a589725204a68f2c7fb2d144d93a Mon Sep 17 00:00:00 2001 From: Baitinq Date: Sat, 20 Jul 2024 13:09:34 +0200 Subject: Migrations: Use UUID as primary key for files table --- supabase/migrations/20240605214214_create_file_table.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/supabase/migrations/20240605214214_create_file_table.sql b/supabase/migrations/20240605214214_create_file_table.sql index 75b462f..af00953 100644 --- a/supabase/migrations/20240605214214_create_file_table.sql +++ b/supabase/migrations/20240605214214_create_file_table.sql @@ -1,5 +1,5 @@ CREATE TABLE IF NOT EXISTS public."file" ( - id SERIAL PRIMARY KEY, + id UUID PRIMARY KEY DEFAULT uuid_generate_v4(), user_id UUID NOT NULL, absolute_path VARCHAR(4096) NOT NULL, contents TEXT, -- cgit 1.4.1