mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Multi-db support
This commit is contained in:
parent
65d6bfd707
commit
ebf5a9163c
@ -25,7 +25,7 @@ class CreateTestData extends Command
|
|||||||
/**
|
/**
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $signature = 'ninja:create-test-data {count=1} {create_account=false}';
|
protected $signature = 'ninja:create-test-data {count=1} {create_account=false} {--database}';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var
|
* @var
|
||||||
@ -68,6 +68,7 @@ class CreateTestData extends Command
|
|||||||
public function fire()
|
public function fire()
|
||||||
{
|
{
|
||||||
if (Utils::isNinjaProd()) {
|
if (Utils::isNinjaProd()) {
|
||||||
|
$this->info('Unable to run in production');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -222,8 +223,6 @@ class CreateTestData extends Command
|
|||||||
*/
|
*/
|
||||||
protected function getOptions()
|
protected function getOptions()
|
||||||
{
|
{
|
||||||
return [
|
return [];
|
||||||
['database', null, InputOption::VALUE_OPTIONAL, 'Database', null],
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user