about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2024-07-20 13:09:34 +0200
committerBaitinq <manuelpalenzuelamerino@gmail.com>2024-07-20 13:24:26 +0200
commit6f398fd5d8e5a589725204a68f2c7fb2d144d93a (patch)
tree3a81f19e5bdb66e3eaf7f2132b8004dc073b0850
parentmisc: Update for working with new server (diff)
downloadfs-tracer-backend-6f398fd5d8e5a589725204a68f2c7fb2d144d93a.tar.gz
fs-tracer-backend-6f398fd5d8e5a589725204a68f2c7fb2d144d93a.tar.bz2
fs-tracer-backend-6f398fd5d8e5a589725204a68f2c7fb2d144d93a.zip
Migrations: Use UUID as primary key for files table
-rw-r--r--supabase/migrations/20240605214214_create_file_table.sql2
1 files changed, 1 insertions, 1 deletions
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,