Skip to content

Commit 1ca4a57

Browse files
Fix upgrade script executing against master instead of PerformanceMonitor (#828)
01_widen_version_columns.sql (PR #722) was missing USE PerformanceMonitor and SET options that every other upgrade script has. The installer connects to master, so the script's OBJECT_ID check resolved against master, found nothing, skipped both ALTERs, and reported success while leaving columns at nvarchar(255). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 6fa4d05 commit 1ca4a57

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

upgrades/2.4.0-to-2.5.0/01_widen_version_columns.sql

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,20 @@ Widen sql_server_version and sql_server_edition columns in config.installation_h
33
Some @@VERSION strings exceed 255 characters (#712)
44
*/
55

6+
SET ANSI_NULLS ON;
7+
SET ANSI_PADDING ON;
8+
SET ANSI_WARNINGS ON;
9+
SET ARITHABORT ON;
10+
SET CONCAT_NULL_YIELDS_NULL ON;
11+
SET QUOTED_IDENTIFIER ON;
12+
SET NUMERIC_ROUNDABORT OFF;
13+
SET IMPLICIT_TRANSACTIONS OFF;
14+
SET STATISTICS TIME, IO OFF;
15+
GO
16+
17+
USE PerformanceMonitor;
18+
GO
19+
620
IF EXISTS
721
(
822
SELECT

0 commit comments

Comments
 (0)