Skip to content

Commit

Permalink
added db:destroy task
Browse files Browse the repository at this point in the history
  • Loading branch information
tamagokun committed Jul 10, 2013
1 parent 46bbf9c commit 137a12d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ Tasks
config # Create development environment configuration
db:backup # Perform a backup suited for merging.
db:create # Create database.
db:destroy # Wipe database.
db:full # Perform a full database backup.
db:merge # Merge a backup into environment.
deploy:cold # First time deployment.
Expand Down
6 changes: 6 additions & 0 deletions lib/tasks/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,12 @@
run($app->env->adapter->create());
});

desc("Wipe database.");
task('destroy','db', function($app) {
warn("destroy","database {$app->env->database["name"]}");
run($app->env->adapter->destroy());
});

desc("Perform a backup suited for merging.");
task('backup','db', function($app) {
info("backup",$app->env->database["name"]);
Expand Down

0 comments on commit 137a12d

Please sign in to comment.