206 lines
6.6 KiB
C#
206 lines
6.6 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace ManagerService.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class UpdatedKioskSpecific : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "IsDate",
|
|
table: "ApplicationInstances");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "IsHour",
|
|
table: "ApplicationInstances");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "IsSectionImageBackground",
|
|
table: "ApplicationInstances");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "RoundedValue",
|
|
table: "ApplicationInstances");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "ScreenPercentageSectionsMainPage",
|
|
table: "ApplicationInstances");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "DeviceId",
|
|
table: "AppConfigurationLinks",
|
|
type: "text",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "IsDate",
|
|
table: "AppConfigurationLinks",
|
|
type: "boolean",
|
|
nullable: false,
|
|
defaultValue: false);
|
|
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "IsHour",
|
|
table: "AppConfigurationLinks",
|
|
type: "boolean",
|
|
nullable: false,
|
|
defaultValue: false);
|
|
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "IsSectionImageBackground",
|
|
table: "AppConfigurationLinks",
|
|
type: "boolean",
|
|
nullable: false,
|
|
defaultValue: false);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "LayoutMainPage",
|
|
table: "AppConfigurationLinks",
|
|
type: "integer",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "LoaderImageId",
|
|
table: "AppConfigurationLinks",
|
|
type: "text",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "LoaderImageUrl",
|
|
table: "AppConfigurationLinks",
|
|
type: "text",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "PrimaryColor",
|
|
table: "AppConfigurationLinks",
|
|
type: "text",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "RoundedValue",
|
|
table: "AppConfigurationLinks",
|
|
type: "integer",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "ScreenPercentageSectionsMainPage",
|
|
table: "AppConfigurationLinks",
|
|
type: "integer",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "SecondaryColor",
|
|
table: "AppConfigurationLinks",
|
|
type: "text",
|
|
nullable: true);
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_AppConfigurationLinks_DeviceId",
|
|
table: "AppConfigurationLinks",
|
|
column: "DeviceId");
|
|
|
|
migrationBuilder.AddForeignKey(
|
|
name: "FK_AppConfigurationLinks_Devices_DeviceId",
|
|
table: "AppConfigurationLinks",
|
|
column: "DeviceId",
|
|
principalTable: "Devices",
|
|
principalColumn: "Id");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropForeignKey(
|
|
name: "FK_AppConfigurationLinks_Devices_DeviceId",
|
|
table: "AppConfigurationLinks");
|
|
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_AppConfigurationLinks_DeviceId",
|
|
table: "AppConfigurationLinks");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "DeviceId",
|
|
table: "AppConfigurationLinks");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "IsDate",
|
|
table: "AppConfigurationLinks");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "IsHour",
|
|
table: "AppConfigurationLinks");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "IsSectionImageBackground",
|
|
table: "AppConfigurationLinks");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "LayoutMainPage",
|
|
table: "AppConfigurationLinks");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "LoaderImageId",
|
|
table: "AppConfigurationLinks");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "LoaderImageUrl",
|
|
table: "AppConfigurationLinks");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "PrimaryColor",
|
|
table: "AppConfigurationLinks");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "RoundedValue",
|
|
table: "AppConfigurationLinks");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "ScreenPercentageSectionsMainPage",
|
|
table: "AppConfigurationLinks");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "SecondaryColor",
|
|
table: "AppConfigurationLinks");
|
|
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "IsDate",
|
|
table: "ApplicationInstances",
|
|
type: "boolean",
|
|
nullable: false,
|
|
defaultValue: false);
|
|
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "IsHour",
|
|
table: "ApplicationInstances",
|
|
type: "boolean",
|
|
nullable: false,
|
|
defaultValue: false);
|
|
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "IsSectionImageBackground",
|
|
table: "ApplicationInstances",
|
|
type: "boolean",
|
|
nullable: false,
|
|
defaultValue: false);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "RoundedValue",
|
|
table: "ApplicationInstances",
|
|
type: "integer",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "ScreenPercentageSectionsMainPage",
|
|
table: "ApplicationInstances",
|
|
type: "integer",
|
|
nullable: true);
|
|
}
|
|
}
|
|
}
|