OneLauncher-Cracked/packages/oneclient_db/migrations/20260914120000_repair_duplicate_disable_overrides.sql
oiupoyt 936e4247a3 feat: update base to official upstream 2.4.2 with all cracked features intact (2.4.2-c1)
- Rebased base onto official Polyfrost OneLauncher 2.4.2 (release v2.4.2).
- Ensured offline mode launches with 0 Microsoft accounts required (no OfflineRequiresMicrosoft error).
- Maintained custom 3D offline skin changer, player model switch (Classic/Slim), and targeted Minecraft Java UUID character slot isolation to prevent multiplayer skin cloning.
- Maintained CustomSkinLoader auto-configuration for local skins, Ely.by, and SkinRestorer.
- Integrated direct GitHub Releases auto-updater pointing to oiupoyt/OneLauncher-Cracked.
- Ported inline username renaming modal and Change Skin navigation in account settings and onboarding.
- Maintained mods filter popover blur/text ghosting fix in package manager.
- Preserved fast dev profile and multiplatform release workflow for v2.4.2-c1.
- All workspace tests and clippy checks pass with 0 errors.
2026-09-17 00:28:04 +05:30

20 lines
1.2 KiB
SQL

-- Repairs the overrides duplicate resolution filed against the user.
--
-- `reconcile_duplicate_activity` switched the older copy of a package off and
-- recorded it as a user disable, but `cluster_bundle_overrides` is keyed by
-- package id and the surviving copy shares it, so the row spoke for a copy
-- nobody turned off. Every lookup that resolves a user's choice then answers
-- "off" for the package: the next bundle update installs the new copy and
-- immediately disables it, and the update check stops shipping the file at all.
--
-- A row alongside a copy that is still on cannot be a considered choice about
-- the package -- had the user turned the package off, nothing of it would be
-- left enabled. Only those go. A package whose copies are all off is
-- indistinguishable from a genuine disable here and is left for the runtime
-- pass, which has the manifest and can tell whether the file was ever shown.
DELETE FROM cluster_bundle_overrides
WHERE override_type = 'disabled'
AND EXISTS (SELECT 1 FROM cluster_artifacts a
WHERE a.cluster_id = cluster_bundle_overrides.cluster_id
AND a.package_id = cluster_bundle_overrides.package_id
AND a.enabled = 1);