namespace EVCB_OCPP.Domain.MainDBContextMigrations { using System; using System.Data.Entity.Migrations; public partial class Modified_MachineErrorTable : DbMigration { public override void Up() { AddColumn("dbo.MachineError", "ErrorCodeId", c => c.Int(nullable: false)); AddColumn("dbo.MachineError", "VendorErrorCode", c => c.String(maxLength: 100)); DropColumn("dbo.MachineError", "ErrorCode"); DropColumn("dbo.MachineError", "VendorErrorCodeNum"); } public override void Down() { AddColumn("dbo.MachineError", "VendorErrorCodeNum", c => c.Int(nullable: false)); AddColumn("dbo.MachineError", "ErrorCode", c => c.Int(nullable: false)); DropColumn("dbo.MachineError", "VendorErrorCode"); DropColumn("dbo.MachineError", "ErrorCodeId"); } } }