Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
`db-migrate db:create` not working as intended #468
I've been playing around for most of the morning with db-migrate and getting myself familiar with the ins and outs. One thing I have noticed is that the db:create command doesn't seem to work as I would have expected it.
For example in my
the whole reason for running the
Yet if I create the database and then run the command passing a a random name it will happily create any database I want. It will also claim that I have created the same database multiple times even when it has in fact created it once.
I ran into this as well when trying to set up a new project using db-migrate.
If you remove the database name from
What I expected was:
EDIT: I'm using MySql and I don't know if this same issue applies to the other database servers.
I'm also having the same issue.
If I don't specify the database at
I think the expected behavior should be like @deegale described.
TLDR: Turning off the magic flag of
First I have the following
and the database.json:
So a basic configuration. The
The commands I use:
Since the creation and syncing are two separate steps a new connection will be created everytime.
Hope this helps you!
This occurs when trying to use Postgres as well. My driver is "pg", and I've installed
I have tried with and without adding
On db-migrate 0.11.3, btw.