8 changed files with 10535 additions and 8 deletions
File diff suppressed because it is too large
@ -0,0 +1,34 @@ |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
#nullable disable |
|||
|
|||
namespace TaskManager.EntityFramework.Migrations |
|||
{ |
|||
/// <inheritdoc />
|
|||
public partial class z202506030001 : Migration |
|||
{ |
|||
/// <inheritdoc />
|
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "QuantityDemand3", |
|||
table: "SUPPLIER_MRP_DATE", |
|||
type: "decimal(18,2)", |
|||
nullable: false, |
|||
oldClrType: typeof(int), |
|||
oldType: "int"); |
|||
} |
|||
|
|||
/// <inheritdoc />
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.AlterColumn<int>( |
|||
name: "QuantityDemand3", |
|||
table: "SUPPLIER_MRP_DATE", |
|||
type: "int", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,2)"); |
|||
} |
|||
} |
|||
} |
File diff suppressed because it is too large
@ -0,0 +1,43 @@ |
|||
using System; |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
#nullable disable |
|||
|
|||
namespace TaskManager.EntityFramework.Migrations |
|||
{ |
|||
/// <inheritdoc />
|
|||
public partial class z202506030002 : Migration |
|||
{ |
|||
/// <inheritdoc />
|
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.CreateTable( |
|||
name: "TaskAllocation", |
|||
columns: table => new |
|||
{ |
|||
UId = table.Column<long>(type: "bigint", nullable: false) |
|||
.Annotation("SqlServer:Identity", "1, 1"), |
|||
TaskName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false), |
|||
TableName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false), |
|||
Creator = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false), |
|||
Subscriber = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false), |
|||
WriteState = table.Column<bool>(type: "bit", nullable: false), |
|||
ReadState = table.Column<bool>(type: "bit", nullable: false), |
|||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
Remark = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_TaskAllocation", x => x.UId); |
|||
}); |
|||
} |
|||
|
|||
/// <inheritdoc />
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropTable( |
|||
name: "TaskAllocation"); |
|||
} |
|||
} |
|||
} |
Loading…
Reference in new issue