nhost / hasura-auth

Authentication for Hasura.
https://nhost.io
MIT License
385 stars 114 forks source link

DB migrations not applied during upgrade from v0.10.0 to v0.17.0 #308

Closed mmmmillar closed 1 year ago

mmmmillar commented 1 year ago

Upgrading from v0.10.0 to v0.17.0

Got this when applying Hasura metadata: image

Checked the db and auth.user_authenticators does not exist

docker logs -f 83e89cade061

> hasura-auth@0.17.0 start /app
> node ./dist/start.js

{"level":"info","message":"Log level: info"}
{"level":"info","message":"Waiting for Hasura to be ready..."}
{"level":"info","message":"Hasura is ready"}
{"level":"info","message":"Applying SQL migrations..."}
{"level":"info","message":"SQL migrations applied"}
{"level":"info","message":"Applying metadata..."}
{"level":"info","message":"Metadata applied"}
{"level":"info","message":"Running on port 4000"}
elitan commented 1 year ago

That's strange.

Can you try this command? What's the output you see?

SELECT * FROM auth.migrations;
mmmmillar commented 1 year ago

image

mmmmillar commented 1 year ago

I've tried this multiple times by clearing the db and installing the prev version and and then upgrading - get the same result

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.