nhost/hasura-storage

Migartions database name should be configurable

ChrisSG opened this issue · 2 comments

Currently it seems that the name of the target database for migrations is fixed to "default"

Source: "default",

This produces the following error when there is no database named "default":

problem applying hasura metadata: problem adding metadata for the buckets table: status_code: 400\nresponse: {\"error\":\"source with name \\\"default\\\" does not exist\",\"path\":\"$.args\",\"code\":\"not-exists\"}

Probably it sould be possible to configure it by using an environment variable.

That makes sense, feel free to open a PR with the addition.

Certainly. PR is here: #185