-- 如果表已存在，只需要插入迁移记录
INSERT INTO `__EFMigrationsHistory` (`MigrationId`, `ProductVersion`)
SELECT '20260120053346_AddWindowsCredentialsAndRemoteAccessTokens', '8.0.0'
WHERE NOT EXISTS (
    SELECT 1 FROM `__EFMigrationsHistory` 
    WHERE `MigrationId` = '20260120053346_AddWindowsCredentialsAndRemoteAccessTokens'
);
