Skip to content

Commit

Permalink
Update CreateMetaTableCommand.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael committed Feb 16, 2015
1 parent 482b36b commit 141a815
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Phoenix/EloquentMeta/CreateMetaTableCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ public function __construct(FileSystem $filesystem)
public function fire()
{
$table_name = strtolower($this->argument('name'));
$dest_dir = strtolower($this->argument('dest'));
$migration = "create_{$table_name}_table";

// The template file is the migration that ships with the package
Expand All @@ -56,7 +55,7 @@ public function fire()
}

// Set the Destination Directory
//$dest_dir = app_path() . '/database/migrations/';
$dest_dir = app_path() . '/database/migrations/';
$dest_file = date("Y_m_d_His").'_'.$migration.'.php';
$dest_path = $dest_dir . $dest_file;

Expand Down Expand Up @@ -92,8 +91,7 @@ public function fire()
protected function getArguments()
{
return array(
array('name', InputArgument::REQUIRED, 'The name of the metatable to be built.'),
array('dest', InputArgument::OPTIONAL, 'The destination of the migration file', app_path() . '/database/migrations/'),
array('name', InputArgument::REQUIRED, 'The name of the metatable to be built.')
);
}

Expand Down

0 comments on commit 141a815

Please sign in to comment.