20210414020114_21041403.cs 892 B

12345678910111213141516171819202122232425262728293031
  1. using Microsoft.EntityFrameworkCore.Migrations;
  2. namespace WCS.Service.Migrations
  3. {
  4. public partial class _21041403 : Migration
  5. {
  6. protected override void Up(MigrationBuilder migrationBuilder)
  7. {
  8. migrationBuilder.AlterColumn<int>(
  9. name: "Type",
  10. table: "WCS_PLC",
  11. type: "int",
  12. nullable: false,
  13. defaultValue: 0,
  14. oldClrType: typeof(int),
  15. oldType: "int",
  16. oldNullable: true);
  17. }
  18. protected override void Down(MigrationBuilder migrationBuilder)
  19. {
  20. migrationBuilder.AlterColumn<int>(
  21. name: "Type",
  22. table: "WCS_PLC",
  23. type: "int",
  24. nullable: true,
  25. oldClrType: typeof(int),
  26. oldType: "int");
  27. }
  28. }
  29. }