Skip to content

Postgres migrations doesn't apply automatically when starting local development environment #2560

Answered by dbarrosop
niksumeiko asked this question in Q&A
Discussion options

You must be logged in to vote

Migrations are always applied. If it says there is nothing to apply that might mean they have already been applied. If needed, you can "reset" your local environment with nhost down --volumes && rm -rf .nhost. You can also check your migrations with the following command:

nhost dev hasura migrate status --endpoint https://local.hasura.nhost.run --admin-secret nhost-admin-secret --database-name default

(you may need to change the admin secret)

If you still don't find the issue, please, provide a github repository reproducing the issue so we can take a look.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@niksumeiko
Comment options

@dbarrosop
Comment options

Answer selected by niksumeiko
@niksumeiko
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants