trilium/export-schema.sh
2017-12-23 13:16:18 -05:00

7 lines
No EOL
165 B
Bash
Executable file

#!/usr/bin/env bash
SCHEMA_FILE_PATH=db/schema.sql
sqlite3 ~/trilium-data/document.db .schema > "$SCHEMA_FILE_PATH"
echo "DB schema exported to $SCHEMA_FILE_PATH"