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:
parent
8089b899a6
commit
17129fc9ef
@ -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
2260
database/setup.sql
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user