mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-23 09:26:29 -06:00
10 lines
317 B
PHP
10 lines
317 B
PHP
<?php
|
|
$db = realpath(__DIR__ . '/_data') . '/db.sqlite';
|
|
$dump = realpath(__DIR__ . '/_data') . '/dump.sql';
|
|
if (!file_exists($db)) {
|
|
$out = [];
|
|
exec('touch ' . $db);
|
|
exec('php artisan migrate --seed --env=testing', $out);
|
|
exec('sqlite3 tests/_data/db.sqlite .dump > tests/_data/dump.sql', $out);
|
|
}
|