using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Backend.Migrations { /// public partial class AddOperationalSiteSettings : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "DemoLoginDisplayName", table: "SiteSettings", type: "character varying(120)", maxLength: 120, nullable: false, defaultValue: ""); migrationBuilder.AddColumn( name: "DemoLoginEmail", table: "SiteSettings", type: "character varying(180)", maxLength: 180, nullable: false, defaultValue: ""); migrationBuilder.AddColumn( name: "DemoLoginEnabled", table: "SiteSettings", type: "boolean", nullable: false, defaultValue: false); migrationBuilder.AddColumn( name: "DemoLoginManagedByDatabase", table: "SiteSettings", type: "boolean", nullable: false, defaultValue: false); migrationBuilder.AddColumn( name: "DemoLoginPasswordHash", table: "SiteSettings", type: "character varying(120)", maxLength: 120, nullable: false, defaultValue: ""); migrationBuilder.AddColumn( name: "DemoLoginPasswordSalt", table: "SiteSettings", type: "character varying(80)", maxLength: 80, nullable: false, defaultValue: ""); migrationBuilder.AddColumn( name: "DemoLoginTwitchUserId", table: "SiteSettings", type: "character varying(120)", maxLength: 120, nullable: false, defaultValue: ""); migrationBuilder.AddColumn( name: "MaintenanceMessage", table: "SiteSettings", type: "character varying(600)", maxLength: 600, nullable: false, defaultValue: ""); migrationBuilder.AddColumn( name: "MaintenanceModeEnabled", table: "SiteSettings", type: "boolean", nullable: false, defaultValue: false); migrationBuilder.AddColumn( name: "MaintenanceTitle", table: "SiteSettings", type: "character varying(120)", maxLength: 120, nullable: false, defaultValue: ""); migrationBuilder.UpdateData( table: "SiteSettings", keyColumn: "Id", keyValue: 1, columns: new[] { "DemoLoginDisplayName", "DemoLoginEmail", "DemoLoginEnabled", "DemoLoginManagedByDatabase", "DemoLoginPasswordHash", "DemoLoginPasswordSalt", "DemoLoginTwitchUserId", "MaintenanceMessage", "MaintenanceModeEnabled", "MaintenanceTitle" }, values: new object[] { "Jayuhime Admin", "", false, false, "", "", "jayuhime_admin", "Die Award-Galaxie wird gerade liebevoll poliert. Schau gleich wieder vorbei.", false, "Sternenpause" }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "DemoLoginDisplayName", table: "SiteSettings"); migrationBuilder.DropColumn( name: "DemoLoginEmail", table: "SiteSettings"); migrationBuilder.DropColumn( name: "DemoLoginEnabled", table: "SiteSettings"); migrationBuilder.DropColumn( name: "DemoLoginManagedByDatabase", table: "SiteSettings"); migrationBuilder.DropColumn( name: "DemoLoginPasswordHash", table: "SiteSettings"); migrationBuilder.DropColumn( name: "DemoLoginPasswordSalt", table: "SiteSettings"); migrationBuilder.DropColumn( name: "DemoLoginTwitchUserId", table: "SiteSettings"); migrationBuilder.DropColumn( name: "MaintenanceMessage", table: "SiteSettings"); migrationBuilder.DropColumn( name: "MaintenanceModeEnabled", table: "SiteSettings"); migrationBuilder.DropColumn( name: "MaintenanceTitle", table: "SiteSettings"); } } }