messages table: introduce new computed isStory field for index usage

This commit is contained in:
Scott Nonnenberg 2021-12-15 00:17:14 -08:00 committed by GitHub
parent e57ca66fd0
commit 42cb570029
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 120 additions and 8 deletions

View file

@ -21,6 +21,7 @@ import updateToSchemaVersion42 from './42-stale-reactions';
import updateToSchemaVersion43 from './43-gv2-uuid';
import updateToSchemaVersion44 from './44-badges';
import updateToSchemaVersion45 from './45-stories';
import updateToSchemaVersion46 from './46-optimize-stories';
function updateToSchemaVersion1(
currentVersion: number,
@ -1905,6 +1906,7 @@ export const SCHEMA_VERSIONS = [
updateToSchemaVersion43,
updateToSchemaVersion44,
updateToSchemaVersion45,
updateToSchemaVersion46,
];
export function updateSchema(db: Database, logger: LoggerType): void {