We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When using graphile-migrate with supabase, it uses the wrong DATABASE_OWNER.
Supabase has a url that looks like this
postgresql://[user].[projectId]:[password]@aws-0-us-west-1.pooler.supabase.com:6543/[db-name]
So the :DATABASE_OWNER variable is set to [user].[projectId] instead of [user]
:DATABASE_OWNER
[user].[projectId]
[user]
The migration runs.
graphile-migrate: Running migration '000001.sql' error: syntax error at or near "."
The . is from the find and replace of [user].[projectId]
Give the ability to manually override the :DATABASE_OWNER placeholder.
The text was updated successfully, but these errors were encountered:
looks like this is related to #75 and they propose a reasonable workaround.
Sorry, something went wrong.
What is the username inside the database, is it [user] or is it [user].[projectId]? You can find out via select user;
select user;
No branches or pull requests
Summary
When using graphile-migrate with supabase, it uses the wrong DATABASE_OWNER.
Supabase has a url that looks like this
So the
:DATABASE_OWNER
variable is set to[user].[projectId]
instead of[user]
Steps to reproduce
Expected results
The migration runs.
Actual results
The . is from the find and replace of [user].[projectId]
Possible Solution
Give the ability to manually override the :DATABASE_OWNER placeholder.
The text was updated successfully, but these errors were encountered: