8 lines
269 B
Plaintext
8 lines
269 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
CLASS_NAME="$(echo "yes" | "$PHP" ./bin/console doctrine:migration:diff -e dev | 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 dev
|
||
|
fi
|