Update schema to include default contents sql file.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user