-
-
Notifications
You must be signed in to change notification settings - Fork 361
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DATABASE_URL
support
#337
Comments
Please provide the information you get from the verbose run. You start the verbose run by appending |
Also to add, if test wouldn't exist, this error wouldn't be thrown. If it already exists there is no need for you to execute this command. And about the specified db, no this is not the way how this command should work. You're creating a new database with this command, while the configuration expects that this already exists. Thus this is clearly out of scope for db:create, maybe we can additionally add something like db:init, as this is initialization you talk about. |
And last but not least, also always provide: Used
|
|
Yes, as suspected nothing wrong with this, |
@wzrdtales i don't get it the previous message clearly says
|
oh, ok, really have not seen the not, sry. This is because db-migrate always tries to connect to a database specified. This error is caused by your provided url which tries to connect to test. This is something that needs to be added, but in this case this is probably still an init instead of a create operation. Nevertheless, to have command execution supported without actually connecting to a database is in some cases not that unproblematic. |
Closing this issue from here with those new items in place. |
thank you 👍 |
As i read the doc
DATABASE_URL
env var is supported.But, using
db-migrate
i accountered some awkward behaviours. Or i missed something.At this point, why should i declare the db name as it is already explicitly declared in the
DATABASE_URL
var ?Sure
test
does exist, i'm trying to create it.The text was updated successfully, but these errors were encountered: