force migrate in nightly

This commit is contained in:
Andras Bacsai
2023-05-03 08:31:50 +02:00
parent f723b504a1
commit aab29f9077
2 changed files with 11 additions and 9 deletions

View File

@@ -1,2 +1,9 @@
#!/command/execlineb -P
php /var/www/html/artisan migrate --force --isolated
VERSION=$(php bootstrap/getVersion.php)
if echo "$VERSION" | grep -q "nightly"; then
php /var/www/html/artisan migrate:fresh --force
php /var/www/html/artisan db:seed --class ProductionSeeder --force
else
php /var/www/html/artisan migrate --force --isolated
fi