Skip to content

Commit

Permalink
chore: add script to setup DB for development
Browse files Browse the repository at this point in the history
  • Loading branch information
josecelano committed Nov 29, 2023
1 parent 49980a1 commit 902e8c7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions contrib/dev-tools/init/install-local.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

# This script is only intended to be used for development environment.

# Generate the Index sqlite database directory and file if it does not exist
mkdir -p ./storage/index/lib/database

if ! [ -f "./storage/index/lib/database/sqlite3.db.db" ]; then
echo "Creating index database 'sqlite3.db.db'"
sqlite3 "./storage/index/lib/database/sqlite3.db.db" "VACUUM;"
fi

0 comments on commit 902e8c7

Please sign in to comment.