using System.Collections.Generic; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace ManagerService.Migrations { /// public partial class LotB_FreezeSchema : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.DropForeignKey( name: "FK_Sections_Resources_MapResourceId", table: "Sections"); migrationBuilder.DropColumn( name: "ParcoursIds", table: "Sections"); migrationBuilder.RenameColumn( name: "MapResourceId", table: "Sections", newName: "IconResourceId"); migrationBuilder.RenameIndex( name: "IX_Sections_MapResourceId", table: "Sections", newName: "IX_Sections_IconResourceId"); migrationBuilder.AddColumn( name: "IsImageWatermark", table: "Instances", type: "boolean", nullable: false, defaultValue: false); migrationBuilder.AddForeignKey( name: "FK_Sections_Resources_IconResourceId", table: "Sections", column: "IconResourceId", principalTable: "Resources", principalColumn: "Id"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropForeignKey( name: "FK_Sections_Resources_IconResourceId", table: "Sections"); migrationBuilder.DropColumn( name: "IsImageWatermark", table: "Instances"); migrationBuilder.RenameColumn( name: "IconResourceId", table: "Sections", newName: "MapResourceId"); migrationBuilder.RenameIndex( name: "IX_Sections_IconResourceId", table: "Sections", newName: "IX_Sections_MapResourceId"); migrationBuilder.AddColumn>( name: "ParcoursIds", table: "Sections", type: "jsonb", nullable: true); migrationBuilder.AddForeignKey( name: "FK_Sections_Resources_MapResourceId", table: "Sections", column: "MapResourceId", principalTable: "Resources", principalColumn: "Id"); } } }