Skip to content
This repository has been archived by the owner on Apr 3, 2023. It is now read-only.

Commit

Permalink
Update to HabitatSeven’s 2022-09-13 database export
Browse files Browse the repository at this point in the history
Use the new file name db-backup/wp_h7_riskprofiler.sql as per upstream,
and change DB_NAME from "wordpress" to "wp_h7_riskprofiler" in .env,
This is to match the recent database name change by HabitatSeven
from "wp_habitatseven_riskprofiler" to "wp_h7_riskprofiler";
see commit d17820 in H7’s Phil Evans’s original repo.
  • Loading branch information
anthonyfok committed Sep 15, 2022
1 parent 1a4d963 commit 02c589d
Show file tree
Hide file tree
Showing 3 changed files with 1,838 additions and 1,075 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ WP_PORT=80
DB_PORT=3306
PMA_PORT=8080
DB_ROOT_PASSWORD=password
DB_NAME=wordpress
DB_NAME=wp_h7_riskprofiler
WORDPRESS_DEBUG=true
WORDPRESS_DEBUG_LOG=true

Expand Down
2 changes: 1 addition & 1 deletion bin/init-db-and-generate-static-site.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import_db() {

if ! wp core is-installed; then
echo "Importing WordPress database for RiskProfiler..."
wp db import /usr/src/db-backup/wp_habitatseven_riskprofiler.sql
wp db import /usr/src/db-backup/wp_h7_riskprofiler.sql
else
echo "WordPress database was previously installed, skipping import."
fi
Expand Down
Loading

0 comments on commit 02c589d

Please sign in to comment.