You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: DBADash/Upgrade/DBValidations.cs
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ public static bool DBExists(string connectionString)
35
35
connectionString=builder.ConnectionString;
36
36
37
37
usingvarcn=newSqlConnection(connectionString);
38
-
usingvarcmd=newSqlCommand("SELECT CASE WHEN EXISTS(SELECT 1 FROM sys.databases WHERE name = @db) THEN CAST(1 as BIT) ELSE CAST(0 as BIT) END as DBExists",cn);
38
+
usingvarcmd=newSqlCommand("SELECT CASE WHEN EXISTS(SELECT 1 FROM sys.databases WHERE name = @db) THEN CAST(1 as BIT) ELSE CAST(0 as BIT) END as DBExists",cn);
39
39
cn.Open();
40
40
cmd.Parameters.AddWithValue("@db",db);
41
41
return(bool)cmd.ExecuteScalar();
@@ -73,7 +73,7 @@ WHERE type NOT IN('S','IT','SQ')
73
73
)
74
74
AND DB_ID()>4
75
75
BEGIN
76
-
SELECT '0.0.0.0' AS Version,1 AS DeployInProgress
76
+
SELECT '0.0.0.0' AS Version,CAST(0 AS BIT) AS DeployInProgress
privatestaticvoidWaitForDBUpgrade(stringconnectionString,stringcaption="Upgrade in progress",stringheading="Repository database upgrade is in progress. ",stringtext="Please wait for this to complete. If you continue, the application might be unstable. \n\nThis dialog will close automatically...",boolallowContinue=true)
418
418
{
419
419
varcloseButton=newTaskDialogButton("Close");
420
420
varpage=newTaskDialogPage
421
421
{
422
-
Caption="Upgrade in progress",
423
-
Heading="Repository database upgrade is in progress. ",
424
-
Text="Please wait for this to complete. If you continue, the application might be unstable. \n\nThis dialog will close automatically...",
WaitForDBUpgrade(connectionString,"Database Deployment","Waiting for first time database deployment to complete. ","Please wait for the deployment to complete. \nIf this doesn't occur within a few minutes, check that the service is started. Check the log file for errors.",false);
0 commit comments