mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-03 12:47:17 -06:00
31 lines
756 B
PHP
31 lines
756 B
PHP
<?php
|
|
//exec('php artisan migrate --seed --env=testing');
|
|
// This is global bootstrap for autoloading
|
|
//
|
|
//
|
|
//$db = realpath(__DIR__ . '/_data') . '/testing.sqlite';
|
|
//if (!file_exists($db)) {
|
|
// echo 'Recreating database...' . "\n";
|
|
// exec('touch ' . $db);
|
|
//
|
|
//} else {
|
|
// echo 'Database exists!' . "\n";
|
|
//}
|
|
//echo 'Copy database to clean database (turned off)...' . "\n";
|
|
//exec('cp ' . $db . ' ' . realpath(__DIR__ . '/_data') . '/clean.sqlite');
|
|
//
|
|
//
|
|
///**
|
|
// * Class resetToClean
|
|
// * @SuppressWarnings("CamelCase")
|
|
// */
|
|
class resetToClean
|
|
{
|
|
/**
|
|
*
|
|
*/
|
|
static public function clean()
|
|
{
|
|
//exec('cp ' . realpath(__DIR__ . '/_data') . '/clean.sqlite ' . realpath(__DIR__ . '/_data') . '/testing.sqlite');
|
|
}
|
|
} |