mirror of
https://github.com/wallabag/wallabag.git
synced 2025-09-15 18:57:05 +00:00
Move prepare database commands to the bootstrap file
This commit is contained in:
parent
c35aa64079
commit
4a4b584a46
3 changed files with 31 additions and 19 deletions
|
@ -1,7 +1,32 @@
|
|||
<?php
|
||||
|
||||
use Symfony\Component\Filesystem\Filesystem;
|
||||
use Symfony\Component\Process\Process;
|
||||
|
||||
require __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
(new Filesystem())->remove(__DIR__ . '/../var/cache/test');
|
||||
|
||||
(new Process([
|
||||
'php',
|
||||
__DIR__ . '/../bin/console',
|
||||
'doctrine:database:drop',
|
||||
'--force',
|
||||
'--env=test',
|
||||
]))->run();
|
||||
|
||||
(new Process([
|
||||
'php',
|
||||
__DIR__ . '/../bin/console',
|
||||
'doctrine:database:create',
|
||||
'--env=test',
|
||||
]))->mustRun();
|
||||
|
||||
(new Process([
|
||||
'php',
|
||||
__DIR__ . '/../bin/console',
|
||||
'doctrine:migrations:migrate',
|
||||
'--no-interaction',
|
||||
'--env=test',
|
||||
'-vv',
|
||||
]))->mustRun();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue