-
Notifications
You must be signed in to change notification settings - Fork 237
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3532 from cisagov/release/12.0.3.2
Release/12.0.3.2
- Loading branch information
Showing
11 changed files
with
326 additions
and
8,398 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
CSETWebApi/CSETWeb_Api/CSETWebCore.UpgradeLibrary/VersionUpgrader/ConvertDatabase12032.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
//////////////////////////////// | ||
// | ||
// Copyright 2023 Battelle Energy Alliance, LLC | ||
// | ||
// | ||
//////////////////////////////// | ||
using System; | ||
using Microsoft.Data.SqlClient; | ||
using System.IO; | ||
namespace UpgradeLibrary.Upgrade | ||
{ | ||
internal class ConvertDatabase12032 : ConvertSqlDatabase | ||
{ | ||
public ConvertDatabase12032(string path) : base(path) | ||
{ | ||
myVersion = new Version("12.0.3.2"); | ||
} | ||
|
||
/// <summary> | ||
/// Runs the database update script | ||
/// </summary> | ||
/// <param name="conn"></param> | ||
public override void Execute(SqlConnection conn) | ||
{ | ||
try | ||
{ | ||
RunFile(Path.Combine(this.applicationPath, "VersionUpgrader", "SQL", "12031_to_12032_data.sql"), conn); | ||
|
||
this.UpgradeToVersionLocalDB(conn, myVersion); | ||
} | ||
catch (Exception e) | ||
{ | ||
throw new DatabaseUpgradeException("Error in upgrading database version 12.0.3.1 to 12.0.3.2: " + e.Message); | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.