mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-05-07 19:53:04 +08:00
7ffd3ba165
- Replace INSERT OR REPLACE with UPDATE for existing providers to avoid triggering ON DELETE CASCADE on provider_endpoints table - Fix endpoint merging logic to correctly mark database endpoints as isCustom when they overlap with preset endpoints The root cause was that INSERT OR REPLACE performs DELETE + INSERT under the hood, which triggered the foreign key cascade and deleted all associated endpoints from provider_endpoints table.