bootstrapping sql werks

This commit is contained in:
anon 2023-08-04 13:29:23 +02:00
parent 50ad0a7656
commit 1702b7de63
2 changed files with 7 additions and 1 deletions

5
bootstrap/bootstrap.sh Normal file → Executable file
View File

@ -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'

3
bootstrap/bootstrap.sql Normal file
View File

@ -0,0 +1,3 @@
.read init.sql
.read defaults.sql
.read project_list.sql