kohana / minion

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

Incorrect migration class name generated by db:generate #3

Closed ahutchings closed 13 years ago

ahutchings commented 13 years ago

If I run the following command php public/index.php --uri=minion/db:generate --location=application/migrations/ --description="Add one-to-many relationship"

the migration class name that results is Migration__20110107011624

It seems that this is happening because Minion_Task_Db_Generate->_generate_classname() expects migrations to be in a subfolder of the migrations folder, but I'm not sure if that is desired for application migrations.

BRMatt commented 13 years ago

Fix classname bug in db:generate when an empty location is used. closed by 64fec1190bb2973746cc62c3ab5f0f9ad1bc2cf2