Skip to content

Commit

Permalink
Removing legacy reset/restore methods and array key
Browse files Browse the repository at this point in the history
  • Loading branch information
sime committed Apr 14, 2013
1 parent c572d93 commit 58aa7ee
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 27 deletions.
1 change: 0 additions & 1 deletion Console/Command/MigrationShell.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@ public function run() {
$options['direction'] = 'up';
} else if (isset($this->args[0]) && $this->args[0] == 'reset') {
$options['version'] = 0;
$options['reset'] = true;
$options['direction'] = 'down';
} else {
$options = $this->_promptVersionOptions($mapping, $latestVersion);
Expand Down
26 changes: 0 additions & 26 deletions Lib/MigrationVersion.php
Original file line number Diff line number Diff line change
Expand Up @@ -315,32 +315,6 @@ public function run($options) {
return true;
}

/**
* Resets the migration to 0.
* @param $type string type of migration being ran
* @return void
*/
protected function resetMigration($type) {
$options['type'] = $type;
$options['version'] = 0;
$options['reset'] = true;
$options['direction'] = 'down';
$this->run($options);
}

/**
* Runs migration to the last well known version defined by $toVersion.
* @param $toVersion string name of the version where the migration will run up to.
* @param $type string type of migration being ran.
* @return void
*/
protected function restoreMigration($toVersion, $type) {
$options['type'] = $type;
$options['direction'] = 'up';
$options['version'] = $toVersion;
$this->run($options);
}

/**
* Initialize the migrations schema and keep it up-to-date
*
Expand Down

0 comments on commit 58aa7ee

Please sign in to comment.