From 1702b7de63d0876924732a291052c6413a6231e3 Mon Sep 17 00:00:00 2001 From: anon Date: Fri, 4 Aug 2023 13:29:23 +0200 Subject: [PATCH] bootstrapping sql werks --- bootstrap/bootstrap.sh | 5 ++++- bootstrap/bootstrap.sql | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) mode change 100644 => 100755 bootstrap/bootstrap.sh create mode 100644 bootstrap/bootstrap.sql diff --git a/bootstrap/bootstrap.sh b/bootstrap/bootstrap.sh old mode 100644 new mode 100755 index 9c0f5c2..7db68f3 --- a/bootstrap/bootstrap.sh +++ b/bootstrap/bootstrap.sh @@ -1,2 +1,5 @@ #!/bin/sh -sqlite3 probotic_data.sqlite -init init.sql -line '.quit' +DBFILE=probotic_data.sqlite + +rm "$DBFILE" +sqlite3 "$DBFILE" -init bootstrap.sql -line '.quit' diff --git a/bootstrap/bootstrap.sql b/bootstrap/bootstrap.sql new file mode 100644 index 0000000..9c4c7cb --- /dev/null +++ b/bootstrap/bootstrap.sql @@ -0,0 +1,3 @@ +.read init.sql +.read defaults.sql +.read project_list.sql