Skip to content

Commit 610b4f3

Browse files
authored
fix: remove postgres extensions dependencies (#421)
1 parent b287d5f commit 610b4f3

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

migrations/tenant/0002-storage-schema.sql

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@ BEGIN
66
END IF;
77
END$$;
88

9-
10-
create extension if not exists "uuid-ossp" WITH schema storage;
11-
create extension if not exists pgcrypto WITH schema storage;
12-
139
DO $$
1410
DECLARE
1511
install_roles text = COALESCE(current_setting('storage.install_roles', true), 'true');
@@ -58,7 +54,7 @@ CREATE TABLE IF NOT EXISTS "storage"."buckets" (
5854
CREATE UNIQUE INDEX IF NOT EXISTS "bname" ON "storage"."buckets" USING BTREE ("name");
5955

6056
CREATE TABLE IF NOT EXISTS "storage"."objects" (
61-
"id" uuid NOT NULL DEFAULT uuid_generate_v4(),
57+
"id" uuid NOT NULL DEFAULT gen_random_uuid(),
6258
"bucket_id" text,
6359
"name" text,
6460
"owner" uuid,
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ALTER TABLE storage.objects ALTER COLUMN id SET DEFAULT gen_random_uuid();

0 commit comments

Comments
 (0)