129 lines
4.0 KiB
C#
129 lines
4.0 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace TeleWave.Infrastructure.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class ChannelBumperSettings : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "BumperAccentColor",
|
|
table: "Channels",
|
|
type: "text",
|
|
nullable: false,
|
|
defaultValue: "0x38bdf8");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "BumperBackgroundColor",
|
|
table: "Channels",
|
|
type: "text",
|
|
nullable: false,
|
|
defaultValue: "0x0b1020");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "BumperBackgroundColor2",
|
|
table: "Channels",
|
|
type: "text",
|
|
nullable: false,
|
|
defaultValue: "0x1e293b");
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "BumperDurationSeconds",
|
|
table: "Channels",
|
|
type: "integer",
|
|
nullable: false,
|
|
defaultValue: 8);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "BumperFont",
|
|
table: "Channels",
|
|
type: "integer",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "BumperMinIntervalMinutes",
|
|
table: "Channels",
|
|
type: "integer",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "BumperNextLabel",
|
|
table: "Channels",
|
|
type: "text",
|
|
nullable: false,
|
|
defaultValue: "ДАЛЕЕ");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "BumperNowLabel",
|
|
table: "Channels",
|
|
type: "text",
|
|
nullable: false,
|
|
defaultValue: "СЕЙЧАС");
|
|
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "BumperOnlyBetweenDifferentShows",
|
|
table: "Channels",
|
|
type: "boolean",
|
|
nullable: false,
|
|
defaultValue: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "BumperTextColor",
|
|
table: "Channels",
|
|
type: "text",
|
|
nullable: false,
|
|
defaultValue: "white");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
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");
|
|
}
|
|
}
|
|
}
|