mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04: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);
|
fclose($fp);
|
||||||
|
|
||||||
// == DB Migrate & Seed == //
|
// == DB Migrate & Seed == //
|
||||||
// Artisan::call('migrate:rollback', array('--force' => true)); // Debug Purposes
|
$sqlFile = base_path() . '/database/setup.sql';
|
||||||
Artisan::call('migrate', ['--force' => true]);
|
DB::unprepared(file_get_contents($sqlFile));
|
||||||
if (Industry::count() == 0) {
|
|
||||||
Artisan::call('db:seed', ['--force' => true]);
|
|
||||||
}
|
|
||||||
Cache::flush();
|
Cache::flush();
|
||||||
Artisan::call('optimize', ['--force' => true]);
|
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…
x
Reference in New Issue
Block a user