9 lines
232 B
Bash

#!/bin/bash
echo -e "\033[36;01m+ Executing migrations\033[0m"
/var/www/bin/console doctrine:migrations:migrate --no-interaction
if [ $? -ne 0 ]; then
echo -e "\033[0;31mAn error occurred when executing migrations.\033[0m"
fi