using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace ManagerService.Migrations
{
///
public partial class UpdatedKioskSpecific : Migration
{
///
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(
name: "DeviceId",
table: "AppConfigurationLinks",
type: "text",
nullable: true);
migrationBuilder.AddColumn(
name: "IsDate",
table: "AppConfigurationLinks",
type: "boolean",
nullable: false,
defaultValue: false);
migrationBuilder.AddColumn(
name: "IsHour",
table: "AppConfigurationLinks",
type: "boolean",
nullable: false,
defaultValue: false);
migrationBuilder.AddColumn(
name: "IsSectionImageBackground",
table: "AppConfigurationLinks",
type: "boolean",
nullable: false,
defaultValue: false);
migrationBuilder.AddColumn(
name: "LayoutMainPage",
table: "AppConfigurationLinks",
type: "integer",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn(
name: "LoaderImageId",
table: "AppConfigurationLinks",
type: "text",
nullable: true);
migrationBuilder.AddColumn(
name: "LoaderImageUrl",
table: "AppConfigurationLinks",
type: "text",
nullable: true);
migrationBuilder.AddColumn(
name: "PrimaryColor",
table: "AppConfigurationLinks",
type: "text",
nullable: true);
migrationBuilder.AddColumn(
name: "RoundedValue",
table: "AppConfigurationLinks",
type: "integer",
nullable: true);
migrationBuilder.AddColumn(
name: "ScreenPercentageSectionsMainPage",
table: "AppConfigurationLinks",
type: "integer",
nullable: true);
migrationBuilder.AddColumn(
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");
}
///
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(
name: "IsDate",
table: "ApplicationInstances",
type: "boolean",
nullable: false,
defaultValue: false);
migrationBuilder.AddColumn(
name: "IsHour",
table: "ApplicationInstances",
type: "boolean",
nullable: false,
defaultValue: false);
migrationBuilder.AddColumn(
name: "IsSectionImageBackground",
table: "ApplicationInstances",
type: "boolean",
nullable: false,
defaultValue: false);
migrationBuilder.AddColumn(
name: "RoundedValue",
table: "ApplicationInstances",
type: "integer",
nullable: true);
migrationBuilder.AddColumn(
name: "ScreenPercentageSectionsMainPage",
table: "ApplicationInstances",
type: "integer",
nullable: true);
}
}
}