Update schema to include default contents sql file.

This commit is contained in:
dan612
2026-01-15 09:59:34 -05:00
parent 2ebe37f8e7
commit 18d4d27183
4 changed files with 22 additions and 15 deletions

View File

@@ -4,3 +4,9 @@
rm database/origo.db
# Import the schema for the new database.
sqlite3 database/origo.db < database/schema.sql
# Check if there is a default content sql file.
if [ -f database/default-content.sql ]; then
# Import the default content for the new database.
sqlite3 database/origo.db < database/default-content.sql
fi