-- WidenSystemArtifactPerSiteStatus (2026-12-03, DEP-3 / code-review WP2 task 2.9). Widens -- SystemArtifactDeploymentRecords.PerSiteStatus from nvarchar(4000) to nvarchar(max): one serialized -- per-site result per site overflowed 4000 chars at ~25 sites, failing Deploy Artifacts after every -- site had applied. The table holds one small row per Deploy Artifacts run. Not yet applied to QA/DEV. BEGIN TRANSACTION; DECLARE @var nvarchar(max); SELECT @var = QUOTENAME([d].[name]) FROM [sys].[default_constraints] [d] INNER JOIN [sys].[columns] [c] ON [d].[parent_column_id] = [c].[column_id] AND [d].[parent_object_id] = [c].[object_id] WHERE ([d].[parent_object_id] = OBJECT_ID(N'[SystemArtifactDeploymentRecords]') AND [c].[name] = N'PerSiteStatus'); IF @var IS NOT NULL EXEC(N'ALTER TABLE [SystemArtifactDeploymentRecords] DROP CONSTRAINT ' + @var + ';'); ALTER TABLE [SystemArtifactDeploymentRecords] ALTER COLUMN [PerSiteStatus] nvarchar(max) NULL; INSERT INTO [__EFMigrationsHistory] ([MigrationId], [ProductVersion]) VALUES (N'20261203151127_WidenSystemArtifactPerSiteStatus', N'10.0.13'); COMMIT; GO