aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorThedro Neely <thedroneely@gmail.com>2022-11-11 11:54:42 -0500
committerThedro Neely <thedroneely@gmail.com>2022-11-11 11:54:42 -0500
commit94506f031c348c3fd0e1f2bb33e8b88dc0d4659f (patch)
tree22b71d490445c7285dbaa3eec939391b6d327a96 /Makefile
parentabdbac031912a395c7524ad0e6f5c70c918531b2 (diff)
downloadthedroneely.com-94506f031c348c3fd0e1f2bb33e8b88dc0d4659f.tar.gz
thedroneely.com-94506f031c348c3fd0e1f2bb33e8b88dc0d4659f.tar.bz2
thedroneely.com-94506f031c348c3fd0e1f2bb33e8b88dc0d4659f.zip
database: Swap to sqlite
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index aa991c3..d412684 100644
--- a/Makefile
+++ b/Makefile
@@ -21,4 +21,8 @@ cockpit:
sed --in-place "s|^hugo_base_dir.*|hugo_base_dir: $$PWD/generators/hugo|" cockpit/addons/Hugo/config.yaml
sed --in-place "s|^hugo_theme.*|hugo_theme: tdro|" cockpit/addons/Hugo/config.yaml
+migration:
+ sqlite3 database/sqlite.db < database/contactform.sql
+ sed --in-place "s|'sql:;dbname=sql_database'|'sqlite:' . __DIR__ . '/database/sqlite.db'|" config.php
+
.PHONY: generators cockpit