trilium/bin/export-schema.sh

7 lines
220 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-03-12 05:58:44 +08:00
sqlite3 ~/trilium-data/document.db .schema | grep -v "sqlite_sequence" > "$SCHEMA_FILE_PATH" | grep -v "note_fulltext_"
2017-12-24 02:16:18 +08:00
echo "DB schema exported to $SCHEMA_FILE_PATH"