using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace ScadaLink.ConfigurationDatabase.Migrations { /// public partial class EncryptSecretColumns : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "Credentials", table: "SmtpConfigurations", type: "nvarchar(max)", maxLength: 8000, nullable: true, oldClrType: typeof(string), oldType: "nvarchar(4000)", oldMaxLength: 4000, oldNullable: true); migrationBuilder.AlterColumn( name: "AuthConfiguration", table: "ExternalSystemDefinitions", type: "nvarchar(max)", maxLength: 8000, nullable: true, oldClrType: typeof(string), oldType: "nvarchar(4000)", oldMaxLength: 4000, oldNullable: true); migrationBuilder.AlterColumn( name: "ConnectionString", table: "DatabaseConnectionDefinitions", type: "nvarchar(max)", maxLength: 8000, nullable: false, oldClrType: typeof(string), oldType: "nvarchar(4000)", oldMaxLength: 4000); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "Credentials", table: "SmtpConfigurations", type: "nvarchar(4000)", maxLength: 4000, nullable: true, oldClrType: typeof(string), oldType: "nvarchar(max)", oldMaxLength: 8000, oldNullable: true); migrationBuilder.AlterColumn( name: "AuthConfiguration", table: "ExternalSystemDefinitions", type: "nvarchar(4000)", maxLength: 4000, nullable: true, oldClrType: typeof(string), oldType: "nvarchar(max)", oldMaxLength: 8000, oldNullable: true); migrationBuilder.AlterColumn( name: "ConnectionString", table: "DatabaseConnectionDefinitions", type: "nvarchar(4000)", maxLength: 4000, nullable: false, oldClrType: typeof(string), oldType: "nvarchar(max)", oldMaxLength: 8000); } } }