Let's make an initial assumption: We have a staging database that is up to date with production (in terms of schema). Now, a new developer comes to the company and he wants to setup his own dev environment (let's say from the staging database's schema). The code development workflow is pretty standard i.e. develop locally, push to repo
For local database setup, what we need is to perform a migration from the staging database to the local development database. The developer can pull a hasura-postgresql docker image and run Hasura in a container.
For the actual migration, hasura
's console comes to our rescue. Firstly, the developer needs to create a new hasura migration or maybe use some existing ones from a git repo, the latter being more favorable. So, assuming that staging database has a git repo which gets updated daily (i.e. a new version of migration gets created every day), the developer can pull this database, simply change t