Describe the bug
When running the migrations it will always try to create the DB first, even if it already exists, which fails when the Lago DB user does not have access to create DB's.
To Reproduce
Try to run ./scripts/migrate.sh with a DB user that does not have admin rights.
This is probably because it always executes bundle exec rake db:create before running bundle exec rails db:migrate.
Expected behavior
It should not fail on DB creation, when the DB creation already exists.
Screenshots
Additional context
Version
Describe the bug
When running the migrations it will always try to create the DB first, even if it already exists, which fails when the Lago DB user does not have access to create DB's.
To Reproduce
Try to run
./scripts/migrate.shwith a DB user that does not have admin rights.This is probably because it always executes
bundle exec rake db:createbefore runningbundle exec rails db:migrate.Expected behavior
It should not fail on DB creation, when the DB creation already exists.
Screenshots
Additional context
Version