This website uses cookies in order to provide better service to our customers. If you agree to our use of cookies, please click the "Accept" button.
For more information on our cookie policy, please see the "Terms"
logo image

PostgreSQL(Supabase)のマイグレーション時に、所有権が無い理由でのエラー

Icon representing a data.
2021-10-24
0
Twitter icon.
Supabase
PostgreSQL

Precondition

  • Supabaseのテーブルをブラウザ上で作成。(root等)

Fact

ブラウザから作成したテーブルを、マイグレーションで変更しようとすると以下のようなエラーが発生します。

Error:  unhandledRejection
Error:  error: must be owner of table [tablename]

Cause

テーブルの所有者じゃないアカウントで、変更しようとしているため。

Method

ブラウザから以下の SQL を実行し、所有者を変更する。

ALTER TABLE [tablename] OWNER TO postgres
在宅専門のフリーランスエンジニアをしています。 得意言語はVBAです。Next.jsとTypescriptを鍛錬中。
Area to place ads.
Area to place ads.
Comments
There are no comments on this article yet.

Environment Library tools

Supabase
PostgreSQL
在宅専門のフリーランスエンジニアをしています。 得意言語はVBAです。Next.jsとTypescriptを鍛錬中。