seerr/server/migration/sqlite
fallenbagel 29034b350d
fix(avatar): fix avatar cache busting by using avatarVersion (#1537)
* fix(avatar): fix avatar cache busting by using avatarVersion

Previously, avatar caching did not update the avatar when the remote image changed. This commit adds
logic to check if the avatar was modified remotely by comparing aremote last-modified timestamp with
a locally stored version (avatarVersion). If a change is detected, the cache is cleared, a new image
is fetched, and avatarVersionis updated. Otherwise, the cached image is retained.

* chore(db): add db migrations

* refactor: refactor imagehelpers util to where its used

* refactor: remove remnants from previous cache busting versions
2025-03-28 06:02:34 +08:00
..
1603944374840-InitialMigration.ts feat: add postgres support + migrations (#628) 2024-12-16 14:02:33 +01:00
1605085519544-SeasonStatus.ts feat: add postgres support + migrations (#628) 2024-12-16 14:02:33 +01:00
1606730060700-CascadeMigration.ts feat: add postgres support + migrations (#628) 2024-12-16 14:02:33 +01:00
1607928251245-DropImdbIdConstraint.ts feat: add postgres support + migrations (#628) 2024-12-16 14:02:33 +01:00
1608217312474-AddUserRequestDeleteCascades.ts feat: add postgres support + migrations (#628) 2024-12-16 14:02:33 +01:00
1608477467935-AddLastSeasonChangeMedia.ts feat: add postgres support + migrations (#628) 2024-12-16 14:02:33 +01:00
1608477467936-ForceDropImdbUniqueConstraint.ts feat: add postgres support + migrations (#628) 2024-12-16 14:02:33 +01:00
1609236552057-RemoveTmdbIdUniqueConstraint.ts feat: add postgres support + migrations (#628) 2024-12-16 14:02:33 +01:00
1610070934506-LocalUsers.ts feat: add postgres support + migrations (#628) 2024-12-16 14:02:33 +01:00
1610370640747-Add4kStatusFields.ts feat: add postgres support + migrations (#628) 2024-12-16 14:02:33 +01:00
1610522845513-AddMediaAddedFieldToMedia.ts feat: add postgres support + migrations (#628) 2024-12-16 14:02:33 +01:00
1611508672722-AddDisplayNameToUser.ts feat: add postgres support + migrations (#628) 2024-12-16 14:02:33 +01:00
1611757511674-SonarrRadarrSyncServiceFields.ts feat: add postgres support + migrations (#628) 2024-12-16 14:02:33 +01:00
1611801511397-AddRatingKeysToMedia.ts feat: add postgres support + migrations (#628) 2024-12-16 14:02:33 +01:00
1612482778137-AddResetPasswordGuidAndExpiryDate.ts feat: add postgres support + migrations (#628) 2024-12-16 14:02:33 +01:00
1612571545781-AddLanguageProfileId.ts feat: add postgres support + migrations (#628) 2024-12-16 14:02:33 +01:00
1613379909641-AddJellyfinUserParams.ts feat: add postgres support + migrations (#628) 2024-12-16 14:02:33 +01:00
1613412948344-ServerTypeEnum.ts feat: add postgres support + migrations (#628) 2024-12-16 14:02:33 +01:00
1613615266968-CreateUserSettings.ts feat: add postgres support + migrations (#628) 2024-12-16 14:02:33 +01:00
1613670041760-AddJellyfinDeviceId.ts feat: add postgres support + migrations (#628) 2024-12-16 14:02:33 +01:00
1613955393450-UpdateUserSettingsRegions.ts feat: add postgres support + migrations (#628) 2024-12-16 14:02:33 +01:00
1614334195680-AddTelegramSettingsToUserSettings.ts feat: add postgres support + migrations (#628) 2024-12-16 14:02:33 +01:00
1615333940450-AddPGPToUserSettings.ts feat: add postgres support + migrations (#628) 2024-12-16 14:02:33 +01:00
1616576677254-AddUserQuotaFields.ts feat: add postgres support + migrations (#628) 2024-12-16 14:02:33 +01:00
1617624225464-CreateTagsFieldonMediaRequest.ts feat: add postgres support + migrations (#628) 2024-12-16 14:02:33 +01:00
1617730837489-AddUserSettingsNotificationAgentsField.ts feat: add postgres support + migrations (#628) 2024-12-16 14:02:33 +01:00
1618912653565-CreateUserPushSubscriptions.ts feat: add postgres support + migrations (#628) 2024-12-16 14:02:33 +01:00
1619239659754-AddUserSettingsLocale.ts feat: add postgres support + migrations (#628) 2024-12-16 14:02:33 +01:00
1619339817343-AddUserSettingsNotificationTypes.ts feat: add postgres support + migrations (#628) 2024-12-16 14:02:33 +01:00
1634904083966-AddIssues.ts feat: add postgres support + migrations (#628) 2024-12-16 14:02:33 +01:00
1635079863457-AddPushbulletPushoverUserSettings.ts feat: add postgres support + migrations (#628) 2024-12-16 14:02:33 +01:00
1660632269368-AddWatchlistSyncUserSetting.ts feat: add postgres support + migrations (#628) 2024-12-16 14:02:33 +01:00
1660714479373-AddMediaRequestIsAutoRequestedField.ts feat: add postgres support + migrations (#628) 2024-12-16 14:02:33 +01:00
1672041273674-AddDiscoverSlider.ts feat: add postgres support + migrations (#628) 2024-12-16 14:02:33 +01:00
1682608634546-AddWatchlists.ts feat: add postgres support + migrations (#628) 2024-12-16 14:02:33 +01:00
1697393491630-AddUserPushoverSound.ts feat: add postgres support + migrations (#628) 2024-12-16 14:02:33 +01:00
1699901142442-AddBlacklist.ts feat: add postgres support + migrations (#628) 2024-12-16 14:02:33 +01:00
1727907530757-AddUserSettingsStreamingRegion.ts feat: add postgres support + migrations (#628) 2024-12-16 14:02:33 +01:00
1734287582736-AddTelegramMessageThreadId.ts fix: fix PostgreSQL migrations and TelegramMessageThreadId migration (#1171) 2024-12-21 16:35:07 +01:00
1734805733535-AddOverrideRules.ts feat: override rules (#945) 2024-12-29 05:20:35 +08:00
1743023610704-UpdateWebPush.ts fix(migrations): add missing Postgres migration and fix SQLite migration (#1532) 2025-03-28 04:27:07 +08:00
1743107645301-AddUserAvatarCacheFields.ts fix(avatar): fix avatar cache busting by using avatarVersion (#1537) 2025-03-28 06:02:34 +08:00