From 6413f07b1f70a94376f9a5fe4e645435a8b92d48 Mon Sep 17 00:00:00 2001 From: amit <1mitccc@gmail.com> Date: Thu, 19 Dec 2024 01:43:34 +0530 Subject: [PATCH] fix: update fs_folders schema to change parent_folder type from String to UUID --- packages/api/prisma/schema.prisma | 2 +- packages/api/scripts/init.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/api/prisma/schema.prisma b/packages/api/prisma/schema.prisma index 1c71a733f..d710d0a9b 100644 --- a/packages/api/prisma/schema.prisma +++ b/packages/api/prisma/schema.prisma @@ -1298,7 +1298,7 @@ model fs_folders { size BigInt? name String? description String? - parent_folder String? + parent_folder String? @db.Uuid remote_id String? created_at DateTime @db.Timestamptz(6) modified_at DateTime @db.Timestamptz(6) diff --git a/packages/api/scripts/init.sql b/packages/api/scripts/init.sql index 36258864b..d64ddc72b 100644 --- a/packages/api/scripts/init.sql +++ b/packages/api/scripts/init.sql @@ -819,7 +819,7 @@ CREATE TABLE fs_folders "size" bigint NULL, name text NULL, description text NULL, - parent_folder text NULL, + parent_folder uuid NULL, remote_id text NULL, created_at timestamp with time zone NOT NULL, modified_at timestamp with time zone NOT NULL,