trilium/bin/export-schema.sh

7 lines
193 B
Bash
Raw Normal View History

2017-12-04 11:29:23 +08:00
#!/usr/bin/env bash
2017-12-24 02:16:18 +08:00
SCHEMA_FILE_PATH=db/schema.sql
2019-04-21 18:03:13 +08:00
sqlite3 ~/trilium-data/document.db .schema | grep -v "sqlite_sequence" > "$SCHEMA_FILE_PATH"
2017-12-24 02:16:18 +08:00
echo "DB schema exported to $SCHEMA_FILE_PATH"