using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Marco.Pms.DataAccess.Migrations { /// public partial class addIsActiveToProjectAllocation : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "IsActive", table: "ProjectAllocations", type: "tinyint(1)", nullable: false, defaultValue: false); migrationBuilder.UpdateData( table: "Modules", keyColumn: "Id", keyValue: 1, column: "Key", value: "b04da7e9-0406-409c-ac7f-b97256e6ea02"); migrationBuilder.UpdateData( table: "Modules", keyColumn: "Id", keyValue: 2, column: "Key", value: "0971c7fb-6ce1-458a-ae3f-8d3205893637"); migrationBuilder.UpdateData( table: "Modules", keyColumn: "Id", keyValue: 3, column: "Key", value: "504ec132-e6a9-422f-8f85-050602cfce05"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "IsActive", table: "ProjectAllocations"); migrationBuilder.UpdateData( table: "Modules", keyColumn: "Id", keyValue: 1, column: "Key", value: "6962167a-70de-4e3d-961d-14cfe676ef22"); migrationBuilder.UpdateData( table: "Modules", keyColumn: "Id", keyValue: 2, column: "Key", value: "d8d0ed22-ce17-4a73-b507-307c43c08b57"); migrationBuilder.UpdateData( table: "Modules", keyColumn: "Id", keyValue: 3, column: "Key", value: "3c0463c6-2842-43ac-b7d3-ca74b26c74a6"); } } }