using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace TeleWave.Infrastructure.Migrations { /// public partial class ChannelBumperSettings : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "BumperAccentColor", table: "Channels", type: "text", nullable: false, defaultValue: "0x38bdf8"); migrationBuilder.AddColumn( name: "BumperBackgroundColor", table: "Channels", type: "text", nullable: false, defaultValue: "0x0b1020"); migrationBuilder.AddColumn( name: "BumperBackgroundColor2", table: "Channels", type: "text", nullable: false, defaultValue: "0x1e293b"); migrationBuilder.AddColumn( name: "BumperDurationSeconds", table: "Channels", type: "integer", nullable: false, defaultValue: 8); migrationBuilder.AddColumn( name: "BumperFont", table: "Channels", type: "integer", nullable: false, defaultValue: 0); migrationBuilder.AddColumn( name: "BumperMinIntervalMinutes", table: "Channels", type: "integer", nullable: false, defaultValue: 0); migrationBuilder.AddColumn( name: "BumperNextLabel", table: "Channels", type: "text", nullable: false, defaultValue: "ДАЛЕЕ"); migrationBuilder.AddColumn( name: "BumperNowLabel", table: "Channels", type: "text", nullable: false, defaultValue: "СЕЙЧАС"); migrationBuilder.AddColumn( name: "BumperOnlyBetweenDifferentShows", table: "Channels", type: "boolean", nullable: false, defaultValue: true); migrationBuilder.AddColumn( name: "BumperTextColor", table: "Channels", type: "text", nullable: false, defaultValue: "white"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "BumperAccentColor", table: "Channels"); migrationBuilder.DropColumn( name: "BumperBackgroundColor", table: "Channels"); migrationBuilder.DropColumn( name: "BumperBackgroundColor2", table: "Channels"); migrationBuilder.DropColumn( name: "BumperDurationSeconds", table: "Channels"); migrationBuilder.DropColumn( name: "BumperFont", table: "Channels"); migrationBuilder.DropColumn( name: "BumperMinIntervalMinutes", table: "Channels"); migrationBuilder.DropColumn( name: "BumperNextLabel", table: "Channels"); migrationBuilder.DropColumn( name: "BumperNowLabel", table: "Channels"); migrationBuilder.DropColumn( name: "BumperOnlyBetweenDifferentShows", table: "Channels"); migrationBuilder.DropColumn( name: "BumperTextColor", table: "Channels"); } } }