试图创建本地开发环境,
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 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
迁移文件将不再尝试删除依赖项的函数。