From c27f07d06d75722003ed0316ea9a6bf10e856b0d Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Fri, 3 May 2024 08:16:54 +0200 Subject: [PATCH] Makefile target for manual migration to help with debugging --- makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/makefile b/makefile index 5c904f3..dec224d 100644 --- a/makefile +++ b/makefile @@ -10,4 +10,11 @@ clean: test: ./gradlew test -.PHONY: run clean test build \ No newline at end of file +dbdump: + sqlite3 app/krusty.db .dump + +migrate: + sqlite3 app/krusty.db < app/Migrations/create-schema.sql + sqlite3 app/krusty.db < app/Migrations/initial-data.sql + +.PHONY: run clean test build