using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace BLAIzor.Migrations { /// public partial class EmbeddingServiceAndDefaultLanguage : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.RenameColumn( name: "voiceId", table: "SiteInfos", newName: "VoiceId"); migrationBuilder.AddColumn( name: "BackgroundVideo", table: "SiteInfos", type: "nvarchar(max)", nullable: true); migrationBuilder.AddColumn( name: "DefaultLanguage", table: "SiteInfos", type: "nvarchar(max)", nullable: true); migrationBuilder.AddColumn( name: "EmbeddingService", table: "SiteInfos", type: "nvarchar(max)", nullable: true); migrationBuilder.AlterColumn( name: "StoredHtml", table: "MenuItems", type: "nvarchar(max)", nullable: true, oldClrType: typeof(string), oldType: "nvarchar(max)"); migrationBuilder.UpdateData( table: "SiteInfos", keyColumn: "Id", keyValue: 1, columns: new[] { "BackgroundVideo", "DefaultLanguage", "EmbeddingService" }, values: new object[] { null, null, null }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "BackgroundVideo", table: "SiteInfos"); migrationBuilder.DropColumn( name: "DefaultLanguage", table: "SiteInfos"); migrationBuilder.DropColumn( name: "EmbeddingService", table: "SiteInfos"); migrationBuilder.RenameColumn( name: "VoiceId", table: "SiteInfos", newName: "voiceId"); migrationBuilder.AlterColumn( name: "StoredHtml", table: "MenuItems", type: "nvarchar(max)", nullable: false, defaultValue: "", oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true); } } }