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.
84 lines
2.5 KiB
C#
84 lines
2.5 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace ZB.MOM.WW.ScadaBridge.ConfigurationDatabase.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class AddDerivedTemplateFields : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "IsInherited",
|
|
table: "TemplateScripts",
|
|
type: "bit",
|
|
nullable: false,
|
|
defaultValue: false);
|
|
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "LockedInDerived",
|
|
table: "TemplateScripts",
|
|
type: "bit",
|
|
nullable: false,
|
|
defaultValue: false);
|
|
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "IsDerived",
|
|
table: "Templates",
|
|
type: "bit",
|
|
nullable: false,
|
|
defaultValue: false);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "OwnerCompositionId",
|
|
table: "Templates",
|
|
type: "int",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "IsInherited",
|
|
table: "TemplateAttributes",
|
|
type: "bit",
|
|
nullable: false,
|
|
defaultValue: false);
|
|
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "LockedInDerived",
|
|
table: "TemplateAttributes",
|
|
type: "bit",
|
|
nullable: false,
|
|
defaultValue: false);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "IsInherited",
|
|
table: "TemplateScripts");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "LockedInDerived",
|
|
table: "TemplateScripts");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "IsDerived",
|
|
table: "Templates");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "OwnerCompositionId",
|
|
table: "Templates");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "IsInherited",
|
|
table: "TemplateAttributes");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "LockedInDerived",
|
|
table: "TemplateAttributes");
|
|
}
|
|
}
|
|
}
|