diff --git a/pu.sh b/pu.sh index ca20643e98..aadd2e151f 100755 --- a/pu.sh +++ b/pu.sh @@ -1,7 +1,10 @@ #!/bin/bash # create DB if not exists -rm -f tests/database/db.sqlite -touch tests/database/db.sqlite -php artisan migrate --seed + +if [ ! -f tests/database/db.sqlite ]; then + touch tests/database/db.sqlite + php artisan migrate --seed +fi + phpunit \ No newline at end of file