英文:
How to modify a Supabase table from the dashboard UI or the Supabase SQL editor?
问题
每当我尝试在Supabase仪表板中修改现有的表时,我会收到这个错误消息:"Failed to pg.columns: must be owner of table <table_name>". 这似乎是一个权限问题,但我不确定应该采取什么措施来解决这个问题。
我还尝试运行SQL脚本来ALTER表,但仍然收到相同的错误消息,提示我必须是表的所有者。
这个项目托管在Supabase云上,我不是自己托管这个项目。此外,我已经禁用了我试图修改的表的RLS。
我尝试使用以下命令授予权限,这些命令是我在Supabase的其他类似权限问题上找到的。但即使这些命令也返回以下错误消息 -
"GRANT supabase_admin TO postgres;"
"Failed to run sql query: must be superuser to alter superusers"
"ALTER USER postgres WITH superuser;"
"Failed to run sql query: must be superuser to alter superuser roles or change superuser attribute"
任何帮助都将不胜感激!谢谢。
英文:
Whenever I try to modify an existing table in the Supabase dashboard, I get this error "Failed to pg.columns: must be owner of table <table_name>". This seems to be like a permission issue but I'm not sure what has to be done to fix this.
I have also tried to run the SQL script to ALTER the table, but I still get the same error saying I must be the owner of the table.
Failed to run sql query: must be owner of table online_users
This project is hosted on Supabase cloud and I'm not self-hosting this project. Also, I have disabled RLS for the table which I'm trying to modify.
I have tried granting permissions using these commands that I found on other similar permission issues for Supabase. But even these commands return the following errors -
GRANT supabase_admin TO postgres;
"Failed to run sql query: must be superuser to alter superusers"
ALTER USER postgres WITH superuser;
"Failed to run sql query: must be superuser to alter superuser roles or change superuser attribute"
Any help is appreciated! Thanks.
答案1
得分: 1
Same, i posted this in the reddit group yesterday and they said to log a ticket with Supabase.
The only way i was able to solve it in a timely manner (I'm on the free tier) was to create a new workspace and recreate the table. Luckily i had backups of the data. I looked through all the settings and nothing's different from my end as far as i can see. So i'm guessing Supabase did something to mess this up for everyone.
英文:
Same, i posted this in the reddit group yesterday and they said to log a ticket with Supabase.
The only way i was able to solve it in a timely manner (I'm on the free tier) was to create a new workspace and recreate the table. Luckily i had backups of the data. I looked through all the settings and nothing's different from my end as far as i can see. So i'm guessing Supabase did something to mess this up for everyone.
答案2
得分: 0
我最终联系了客服,他们要求我在我的仪表板中执行一些脚本。他们提供的脚本一直执行失败,经过几天后,他们从他们的端修复了它。现在问题已解决。
附言:他们的支持相当不错,他们总是在一天内回复我。
英文:
I eventually contacted the support, and they asked me to execute a couple of scripts in my dashboard. The scripts they provided kept failing, and after a couple of days, they fixed it from their end. Now the issue is resolved.
P.S. Their support was pretty good and they always got back to me within a day.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论