mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-30 12:43:57 -06:00
9 lines
266 B
PHP
9 lines
266 B
PHP
<?php
|
|
$db = realpath(__DIR__ . '/../_data') . '/db.sqlite';
|
|
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);
|
|
}
|