From df26e54c3b1c15ab137dbdf8fddb6547539f0200 Mon Sep 17 00:00:00 2001 From: Guillaume Lesniak Date: Mon, 12 Sep 2016 09:57:05 +0200 Subject: [PATCH] scripts: Add DB seed script --- scripts/seed-db.sh | 14 ++++++++++++++ scripts/upgrade-db.sh | 0 2 files changed, 14 insertions(+) create mode 100755 scripts/seed-db.sh mode change 100644 => 100755 scripts/upgrade-db.sh diff --git a/scripts/seed-db.sh b/scripts/seed-db.sh new file mode 100755 index 0000000..73915eb --- /dev/null +++ b/scripts/seed-db.sh @@ -0,0 +1,14 @@ +#!/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 + diff --git a/scripts/upgrade-db.sh b/scripts/upgrade-db.sh old mode 100644 new mode 100755