Key cleanup before migration 88 and attempt vacuum only once in 920
This commit is contained in:
parent
6ae0edcc1e
commit
be6331d75f
4 changed files with 615 additions and 146 deletions
|
@ -62,6 +62,7 @@ import updateToSchemaVersion83 from './83-mentions';
|
|||
import updateToSchemaVersion84 from './84-all-mentions';
|
||||
import updateToSchemaVersion85 from './85-add-kyber-keys';
|
||||
import updateToSchemaVersion86 from './86-story-replies-index';
|
||||
import updateToSchemaVersion87 from './87-cleanup';
|
||||
import updateToSchemaVersion88 from './88-service-ids';
|
||||
import updateToSchemaVersion89 from './89-call-history';
|
||||
import updateToSchemaVersion90 from './90-delete-story-reply-screenshot';
|
||||
|
@ -775,13 +776,7 @@ function updateToSchemaVersion17(
|
|||
);
|
||||
}
|
||||
|
||||
try {
|
||||
db.exec('DROP INDEX messages_view_once;');
|
||||
} catch (error) {
|
||||
logger.info(
|
||||
'updateToSchemaVersion17: Index messages_view_once did not already exist'
|
||||
);
|
||||
}
|
||||
db.exec('DROP INDEX IF EXISTS messages_view_once;');
|
||||
|
||||
db.exec(`
|
||||
CREATE INDEX messages_view_once ON messages (
|
||||
|
@ -2004,7 +1999,7 @@ export const SCHEMA_VERSIONS = [
|
|||
updateToSchemaVersion84,
|
||||
updateToSchemaVersion85,
|
||||
updateToSchemaVersion86,
|
||||
// version 87 was dropped
|
||||
updateToSchemaVersion87,
|
||||
updateToSchemaVersion88,
|
||||
updateToSchemaVersion89,
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue