1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-09 12:42:36 +01:00

Added setup.sql to speed up initial setup

This commit is contained in:
Hillel Coren 2017-01-25 17:03:36 +02:00
parent 8089b899a6
commit 17129fc9ef
2 changed files with 2262 additions and 5 deletions

View File

@ -120,11 +120,8 @@ class AppController extends BaseController
fclose($fp);
// == DB Migrate & Seed == //
// Artisan::call('migrate:rollback', array('--force' => true)); // Debug Purposes
Artisan::call('migrate', ['--force' => true]);
if (Industry::count() == 0) {
Artisan::call('db:seed', ['--force' => true]);
}
$sqlFile = base_path() . '/database/setup.sql';
DB::unprepared(file_get_contents($sqlFile));
Cache::flush();
Artisan::call('optimize', ['--force' => true]);

2260
database/setup.sql Normal file

File diff suppressed because one or more lines are too long