| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- namespace ShwasherSys.Migrations
- {
- using System;
- using System.Data.Entity.Migrations;
-
- public partial class addScheduleOrderSend : DbMigration
- {
- public override void Up()
- {
- CreateTable(
- "dbo.ScheduleOrderSend",
- c => new
- {
- Id = c.Int(nullable: false, identity: true),
- OrderItemId = c.Int(nullable: false),
- Remark = c.String(maxLength: 500),
- PlanQuantity = c.Decimal(precision: 18, scale: 2),
- SendUser = c.String(maxLength: 32),
- PlanDate = c.DateTime(),
- SendState = c.Int(nullable: false),
- LastModificationTime = c.DateTime(),
- LastModifierUserId = c.Long(),
- CreationTime = c.DateTime(nullable: false),
- CreatorUserId = c.Long(),
- })
- .PrimaryKey(t => t.Id);
-
- //CreateTable(
- // "dbo.N_ViewScheduleOrderSend",
- // c => new
- // {
- // Id = c.Int(nullable: false, identity: true),
- // OrderItemId = c.Int(nullable: false),
- // PlanQuantity = c.Decimal(precision: 18, scale: 2),
- // SendUser = c.String(),
- // Remark = c.String(),
- // PlanDate = c.DateTime(),
- // SendState = c.Int(nullable: false),
- // OrderNo = c.String(),
- // ProductNo = c.String(),
- // ProductName = c.String(),
- // Model = c.String(),
- // Material = c.String(),
- // SurfaceColor = c.String(),
- // Rigidity = c.String(),
- // StockNo = c.String(),
- // CustomerName = c.String(),
- // CustomerId = c.String(),
- // })
- // .PrimaryKey(t => t.Id);
-
- //AlterColumn("dbo.ReturnGoodOrder", "Quantity", c => c.Decimal(precision: 18, scale: 3));
- }
-
- public override void Down()
- {
- AlterColumn("dbo.ReturnGoodOrder", "Quantity", c => c.Decimal(precision: 18, scale: 2));
- DropTable("dbo.N_ViewScheduleOrderSend");
- DropTable("dbo.ScheduleOrderSend");
- }
- }
- }
|