Skip to content

Commit c2e8f44

Browse files
authored
Merge pull request #711 from Laravel-Backpack/set-the-website-in-maintenaince-while-cleaning-the-db
set maintenaince while refreshing the database
2 parents dc5a853 + 64f3aa6 commit c2e8f44

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/Console/Commands/RefreshDb.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,12 @@ public function __construct()
3939
*/
4040
public function handle()
4141
{
42+
Artisan::call('down');
4243
Log::warning('Cleanup time. Refreshing the database.');
4344
Artisan::call('db:wipe --force');
4445
Artisan::call('migrate --force');
4546
Artisan::call('db:seed --force');
4647
Artisan::call('backup:clean');
48+
Artisan::call('up');
4749
}
4850
}

0 commit comments

Comments
 (0)