Closed
Description
When we run the TaaS API locally we are running "npm run init-db" to create the DB schema.
The created DB schema already includes all the changes we've done using migrations scripts inside the migrations
folder.
But if we run npm run migrate
we would get an error, because it would try to apply all the migrations again.
This is bad because we might need to test migrations locally if we are working on some DB updates.
To fix this, when we run "npm run init-db" we have to make sure, that the migrations which are already applied to the current DB schema would not be re-applied again.
To do so I think the best way is: