From c0e3aec661628f0ecbb98be1664991490ae9b67c Mon Sep 17 00:00:00 2001 From: Kevin Frantz Date: Sat, 5 Jan 2019 17:14:06 +0100 Subject: [PATCH] Added script for recreating database --- administration/recreate-database.sh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 administration/recreate-database.sh diff --git a/administration/recreate-database.sh b/administration/recreate-database.sh new file mode 100644 index 0000000..82dd44d --- /dev/null +++ b/administration/recreate-database.sh @@ -0,0 +1,4 @@ +#!/bin/bash +cd "$(dirname "$(readlink -f "${0}")")/../docker-symfony/" || exit 1 +docker-compose exec php php bin/console doctrine:database:drop --force && +docker-compose exec php php bin/console doctrine:database:create