10 lines
310 B
Bash
Executable file
10 lines
310 B
Bash
Executable file
#!/bin/sh
|
|
|
|
APP_ENV="${APP_ENV:-dev}"
|
|
|
|
CLASS_NAME="$(echo "yes" | "$PHP" ./bin/console doctrine:migration:diff -e "$APP_ENV" | grep -o "Version[0-9]*" | tail -n 1)"
|
|
|
|
if [ -n "$CLASS_NAME" ]; then
|
|
echo "yes" | "$PHP" ./bin/console doctrine:migration:exec --up "DoctrineMigrations\\$CLASS_NAME" -e "$APP_ENV"
|
|
fi
|