MonarcAppBO/scripts/seed-db.sh

15 lines
350 B
Bash
Executable File

#!/bin/bash
if [ -d module/MonarcCore ]; then
php ./vendor/bin/phinx seed:run -c ./module/MonarcCore/migrations/phinx.php
fi
if [ -d module/MonarcBO ]; then
php ./vendor/bin/phinx seed:run -c ./module/MonarcBO/migrations/phinx.php
fi
if [ -d module/MonarcFO ]; then
php ./vendor/bin/phinx seed:run -c ./module/MonarcFO/migrations/phinx.php
fi