postgres supabase_admin user not created in initial setup

Open
#1,520 6 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
55/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
postgres
Domain
databases

Research direction

Start with migrations/db/init-scripts/00000000000000-initial-schema.sql and compare the current version with commit ab7f879. Verify the initial database setup creates the supabase_admin role and that a fresh startup with container 15.8.1.020 completes without the missing-role error.

Written by the indexing model from the issue text.

Description

bug
  • [ x] I confirm this is a bug with Supabase, not with my own application.
  • [ x] I confirm I have searched the [Docs]

Describe the bug

After upgrading db container to 15.8.1.020 database won't startup correctly complaining that supabase_adming role does not exist.

db starts up correctly with container 15.1.1.78

To Reproduce

  1. Delete all postgres database files
  2. change db container to 15.8.1.020 & startup your system

System information

I use the container in a kubernetes setup but it looks like a general problem with migrations/db/init-scripts/00000000000000-initial-schema.sql in the most recent commit
ab7f879

the line create user supabase_admin dissapeared (it was present before).

Additional context

This seems to be related to 18836

Dominant language
Nix
Stars
1.8k
Forks
266
Avg merge
2d 8h
Merged PRs (30d)
25

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from supabase/postgres

All issues in supabase/postgres

Similar issues

More Databases issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.