aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--share/templater/drupal8/files/Makefile.drupal83
1 files changed, 2 insertions, 1 deletions
diff --git a/share/templater/drupal8/files/Makefile.drupal8 b/share/templater/drupal8/files/Makefile.drupal8
index 410635b..9ff3dcc 100644
--- a/share/templater/drupal8/files/Makefile.drupal8
+++ b/share/templater/drupal8/files/Makefile.drupal8
@@ -5,6 +5,7 @@
# Parameters
CORE = 8
PROJECT = drupal
+DATABASE ?= $(PROJECT)
ENV ?= dev
DATE = $(shell date +%Y%m%d)
CWD = $(shell pwd)
@@ -143,7 +144,7 @@ cache:
# Destroy the database
destroydb:
- echo "DROP DATABASE $(PROJECT); CREATE DATABASE $(PROJECT);" | $(DRUSH) sql-cli
+ echo "DROP DATABASE $(DATABASE); CREATE DATABASE $(DATABASE);" | $(DRUSH) sql-cli
# Reinitializes the database
reinitdb: destroydb initdb