7b0b9c7365
Solution + 23 src projects + 26 test projects renamed; folders, csproj, namespaces, and ScadaLinkDbContext/ScadaBridgeDbContext class updated. ActorSystem "scadalink" → "scadabridge", Akka seed-node URLs migrated. SQL roles/logins, LDAP domains, CLI command name, and CLI config dir (~/.scadalink → ~/.scadabridge) also renamed. Build green; 5 Host.Tests fail awaiting SQL login rename in next commit. Pre-existing StaleTagMonitor timing flakes unchanged. Rename script committed at tools/rename-to-scadabridge.sh.
51 lines
1.5 KiB
C#
51 lines
1.5 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace ZB.MOM.WW.ScadaBridge.ConfigurationDatabase.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class AddPrimaryBackupDataConnections : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.RenameColumn(
|
|
name: "Configuration",
|
|
table: "DataConnections",
|
|
newName: "PrimaryConfiguration");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "BackupConfiguration",
|
|
table: "DataConnections",
|
|
type: "nvarchar(4000)",
|
|
maxLength: 4000,
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "FailoverRetryCount",
|
|
table: "DataConnections",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 3);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "BackupConfiguration",
|
|
table: "DataConnections");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "FailoverRetryCount",
|
|
table: "DataConnections");
|
|
|
|
migrationBuilder.RenameColumn(
|
|
name: "PrimaryConfiguration",
|
|
table: "DataConnections",
|
|
newName: "Configuration");
|
|
}
|
|
}
|
|
}
|