kohana / minion

Everyone loves having a minion they can boss around
113 stars 76 forks source link

Automatically migrations schema on first db:migrate call #9

Closed ThePixelDeveloper closed 13 years ago

ThePixelDeveloper commented 13 years ago

Instead of having to import the schema into the database, it'd be nice to have minion automatically create the database schema when you first run db:migrate

BRMatt commented 13 years ago

I can't remember off the top of my head, but doesn't kohana's db library require a database to exist in order to connect to it?

ThePixelDeveloper commented 13 years ago

I missed a word in my title "Automatically execute migrations schema on first db:migrate call".

Yeah it does, you're executing migrations against a database so you will know it's going to exist. I'm saying it'd be nice to check if the migrations table was already there and if it wasn't, then run schema.sql against it.

BRMatt commented 13 years ago

Ah I see, sorry I misread this and thought you wanted the database creating.

BRMatt commented 13 years ago

Ensure the migrations table exists before running migrations, closed by 5648f47110efb42c1ce1e2c009a8c486453ff3c7