This commit is contained in:
parent
c4b59f3292
commit
78aa17b367
|
|
@ -194,9 +194,11 @@ END$$;
|
||||||
|
|
||||||
|
|
||||||
-- ✅ 单独插入 bucket(允许重复执行)
|
-- ✅ 单独插入 bucket(允许重复执行)
|
||||||
INSERT INTO storage.buckets (id, name, owner)
|
INSERT INTO storage.buckets (id, name, owner, public)
|
||||||
VALUES ('profile_images', 'profile_images', NULL)
|
VALUES ('profile_images', 'profile_images', NULL, true)
|
||||||
ON CONFLICT (id) DO NOTHING;
|
ON CONFLICT (id) DO UPDATE SET public = true;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-- ✅ 单独定义权限策略(重复执行不会报错)
|
-- ✅ 单独定义权限策略(重复执行不会报错)
|
||||||
DO $$
|
DO $$
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue