Call db:seed after DB update

This commit is contained in:
Andy Heathershaw 2017-04-18 20:07:59 +01:00
parent b5769ec192
commit a645a126b3

View File

@ -98,6 +98,8 @@ class AppInstallation
Artisan::call('cache:clear'); Artisan::call('cache:clear');
Artisan::call('migrate', ['--force' => true]); Artisan::call('migrate', ['--force' => true]);
Artisan::call('db:seed');
$className = sprintf('DataMigrationV%s', str_replace(['.', '-'], '_', $appVersionNumber)); $className = sprintf('DataMigrationV%s', str_replace(['.', '-'], '_', $appVersionNumber));
if (class_exists($className)) if (class_exists($className))
{ {