201907260616245_Modified_MachineErrorTable.cs 920 B

123456789101112131415161718192021222324
  1. namespace EVCB_OCPP.Domain.MainDBContextMigrations
  2. {
  3. using System;
  4. using System.Data.Entity.Migrations;
  5. public partial class Modified_MachineErrorTable : DbMigration
  6. {
  7. public override void Up()
  8. {
  9. AddColumn("dbo.MachineError", "ErrorCodeId", c => c.Int(nullable: false));
  10. AddColumn("dbo.MachineError", "VendorErrorCode", c => c.String(maxLength: 100));
  11. DropColumn("dbo.MachineError", "ErrorCode");
  12. DropColumn("dbo.MachineError", "VendorErrorCodeNum");
  13. }
  14. public override void Down()
  15. {
  16. AddColumn("dbo.MachineError", "VendorErrorCodeNum", c => c.Int(nullable: false));
  17. AddColumn("dbo.MachineError", "ErrorCode", c => c.Int(nullable: false));
  18. DropColumn("dbo.MachineError", "VendorErrorCode");
  19. DropColumn("dbo.MachineError", "ErrorCodeId");
  20. }
  21. }
  22. }