Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't set "supabase/postgres 14.1.0" and use "supabase db remote set" because of version diff. #90

Closed
yahsan2 opened this issue Dec 4, 2021 · 0 comments · Fixed by #91
Labels
bug Something isn't working

Comments

@yahsan2
Copy link
Contributor

yahsan2 commented Dec 4, 2021

Bug report

I tried to exec supabase db remote set command and got the below error.

$supabase db remote set 'postgresql://postgres:[MY_PASSWORD]@[MY_HOST]:5432/postgres'
Error: Remote database Postgres version 140001 is incompatible with dbVersion 130003.

I tried to set dbVersion on supabase/config.json

But, I got this error.

$supabase start
Failed reading config: Invalid dbVersion: 140001.

I read these codes, and I think we have to add some codes for "supabase/postgres 14.1.0"

cli/internal/utils/utils.go

Lines 141 to 160 in b4042d1

switch DbVersion {
case
"120000",
"120001",
"120002",
"120003",
"120004",
"120005",
"120006",
"120007",
"120008":
DbImage = "supabase/postgres:0.14.0"
case
"130000",
"130001",
"130002",
"130003",
"130004":
DbImage = "supabase/postgres:13.3.0"
default:

Expected behavior

I'd like to use supabase/postgres 14.1.0.

System information

  • OS: macOS (arch -arm64)
  • supabase -v #0.15.2
  • Version of Node.js: [e.g. 10.10.0]

Additional context

I created PR for this.
#91

@yahsan2 yahsan2 added the bug Something isn't working label Dec 4, 2021
@soedirgo soedirgo linked a pull request Dec 4, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant