Skip to content

Commit 90fe988

Browse files
committed
call database create command to create database
1 parent 2d730c6 commit 90fe988

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Command/SetupCommand.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ protected function executeLocked(InputInterface $input, OutputInterface $output)
2727
return;
2828
}
2929

30+
$command = $this->getApplication()->find('doctrine:database:create');
31+
32+
if($command->run(new ArrayInput(["--if-not-exists" => true]), $output)){
33+
return;
34+
}
35+
3036
$command = $this->getApplication()->find('contao:database:update');
3137

3238
if($command->run(new ArrayInput([]), $output)){

0 commit comments

Comments
 (0)