1
1
Fork 0
mirror of https://github.com/zadam/trilium.git synced 2025-01-23 07:29:18 +08:00
trilium/bin/export-schema.sh
2019-04-21 12:03:13 +02:00

7 lines
No EOL
193 B
Bash
Executable file

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