Migrate sessions table to BLOB column
Co-authored-by: Scott Nonnenberg <scott@signal.org>
This commit is contained in:
parent
a4d8ba4899
commit
091580825a
8 changed files with 582 additions and 275 deletions
|
@ -74,6 +74,10 @@ export function getTableData(db: ReadableDB, table: string): TableRows {
|
|||
if (value == null) {
|
||||
continue;
|
||||
}
|
||||
if (Buffer.isBuffer(value)) {
|
||||
result[key] = value.toString('hex');
|
||||
continue;
|
||||
}
|
||||
try {
|
||||
if (typeof value !== 'string') {
|
||||
throw new Error('skip');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue