-
Notifications
You must be signed in to change notification settings - Fork 260
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 #4321 from cisagov/release/12.3.0.2
Release/12.3.0.2
- Loading branch information
Showing
28 changed files
with
15,070 additions
and
1,213 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
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/ConvertDatabase12302.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 2024 Battelle Energy Alliance, LLC | ||
// | ||
// | ||
//////////////////////////////// | ||
using System; | ||
using Microsoft.Data.SqlClient; | ||
using System.IO; | ||
namespace UpgradeLibrary.Upgrade | ||
{ | ||
internal class ConvertDatabase12302 : ConvertSqlDatabase | ||
{ | ||
public ConvertDatabase12302(string path) : base(path) | ||
{ | ||
myVersion = new Version("12.3.0.2"); | ||
} | ||
|
||
/// <summary> | ||
/// Runs the database update script | ||
/// </summary> | ||
/// <param name="conn"></param>F | ||
public override void Execute(SqlConnection conn) | ||
{ | ||
try | ||
{ | ||
RunFile(Path.Combine(this.applicationPath, "VersionUpgrader", "SQL", "12301_to_12302.sql"), conn); | ||
RunFile(Path.Combine(this.applicationPath, "VersionUpgrader", "SQL", "12301_to_12302_data.sql"), conn); | ||
this.UpgradeToVersionLocalDB(conn, myVersion); | ||
} | ||
catch (Exception e) | ||
{ | ||
throw new DatabaseUpgradeException("Error in upgrading database version 12.3.0.1 to 12.3.0.2: " + e.Message); | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.