kohana-minion / tasks-migrations

Migration tasks for the kohana-minion cli framework
46 stars 28 forks source link

Locations don't appear to work. #6

Closed ThePixelDeveloper closed 13 years ago

ThePixelDeveloper commented 13 years ago

I'm having trouble getting the locations feature to work properly.

I only want to run migrations under a directory called nolimits. I've tried.

but both of those commands are outputting:

##########################
# Begin Location: minion #
##########################

# Begin 20110110093709

CREATE TABLE `test_minion_migrations` (
  `timestamp` varchar(14) NOT NULL,
  `description` varchar(100) NOT NULL,
  `location` varchar(100) NOT NULL,
  `applied` tinyint(1) DEFAULT '0',
  PRIMARY KEY (`timestamp`,`location`),
  UNIQUE KEY `MIGRATION_ID` (`timestamp`,`description`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;;

# End 20110110093709

########################
# End Location: minion #
########################

Am I missing something or is the feature broken?

ThePixelDeveloper commented 13 years ago

Ok.

The problem was I had not created the nolimits directory, maybe it'd be nice to show a warning instead of migrations which don't apply.

The next problem was only

./minion db:migrate --dry-run --locations=nolimits --versions=TRUE

displayed the correct migrations (with the directory created), where as:

./minion db:migrate --dry-run --versions=nolimits:TRUE

would still give me the incorrect output.

BRMatt commented 13 years ago

Now throws an exception if a group doesn't exist, just need to prettify the output.

bobeagan commented 13 years ago

Is this ticket still relevant? Can you reproduce this problem using the new option configuration?

BRMatt commented 13 years ago

Going to close this, please reopen if problem exists / resurfaces