Commit aa8c195
fix: handle missing columns in older Signal DB schemas (#201)
Some older Signal Desktop databases (e.g. January 2024) are missing
columns that the messages query hardcodes: timestamp, serverTimestamp,
sourceServiceId, hasAttachments, readStatus, seenStatus, expireTimer.
Use PRAGMA table_info(messages) to detect available columns and fall
back to NULL AS <colname> for any that are absent.
Fixes #171
Co-authored-by: Claude Sonnet 4.6 <claude-sonnet-4-6@anthropic.com>1 parent 9fe54b8 commit aa8c195
1 file changed
+14
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
78 | 85 | | |
79 | 86 | | |
80 | 87 | | |
| |||
98 | 105 | | |
99 | 106 | | |
100 | 107 | | |
101 | | - | |
102 | | - | |
| 108 | + | |
| 109 | + | |
103 | 110 | | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
109 | 116 | | |
110 | 117 | | |
111 | 118 | | |
| |||
0 commit comments