mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-12-29 02:11:12 -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);
|
|
}
|