supabase错误:无法删除函数storage.get_level(text),因为其他对象取决于IT

问题描述 投票:0回答:1

试图创建本地开发环境,

supabase db reset

失败了

Resetting local database... Recreating database... Initialising schema... Seeding globals from roles.sql... Applying migration 20250316135437_remote_schema.sql... Applying migration 20250316135745_remote_schema.sql... ERROR: cannot drop function storage.get_level(text) because other objects depend on it (SQLSTATE 2BP01) At statement 31: drop function if exists "storage"."get_level"(name text)
我怎么能克服这个?

supabase supabase-database
1个回答
0
投票
问题是由于较早发行

supabase db pull

看到警告:

The auth and storage schemas are excluded. Run supabase db pull --schema auth,storage again to diff them.


发出建议的,

db pull --schema auth,storage

不这样做。  相反,从
开始

rm -rf supabase/migrations/*

然后在一个命令中,包括所有模式:

supabase db pull --schema public,auth,storage

迁移文件将不再尝试删除依赖项的函数。
    

最新问题
© www.soinside.com 2019 - 2025. All rights reserved.