* fix: handle tipUsers migration for older feed versions * chore: clean code * test: add migrationTipUser test for feed service * chore: clean code * fix: implement upgradeToV8 for tipUsers migration and add tests * refactor: remove legacy migration function and its tests * chore: clean code
43 lines
701 B
TypeScript
43 lines
701 B
TypeScript
export const dbSchemaV1 = {
|
|
entries: "&id",
|
|
feeds: "&id",
|
|
subscriptions: "&id",
|
|
entryRelated: "&id",
|
|
feedUnreads: "&id",
|
|
}
|
|
|
|
export const dbSchemaV2 = {
|
|
...dbSchemaV1,
|
|
subscriptions: "&id, userId, feedId",
|
|
}
|
|
|
|
export const dbSchemaV3 = {
|
|
...dbSchemaV2,
|
|
feedEntries: null,
|
|
|
|
subscriptions: "&id, userId, &feedId",
|
|
}
|
|
|
|
export const dbSchemaV4 = {
|
|
...dbSchemaV3,
|
|
entries: "&id, feedId",
|
|
subscriptions: "&id, userId, feedId",
|
|
}
|
|
|
|
export const dbSchemaV5 = {
|
|
...dbSchemaV4,
|
|
cleaner: "&refId, visitedAt",
|
|
}
|
|
|
|
export const dbSchemaV6 = {
|
|
...dbSchemaV5,
|
|
lists: "&id, title",
|
|
}
|
|
|
|
export const dbSchemaV7 = {
|
|
...dbSchemaV6,
|
|
inboxes: "&id",
|
|
}
|
|
|
|
export const dbSchemaV8 = dbSchemaV7
|