20241217143849_projeto-codigo2.cs 1003 B

1234567891011121314151617181920212223242526272829303132333435
  1. using System;
  2. using Microsoft.EntityFrameworkCore.Migrations;
  3. #nullable disable
  4. namespace ConcursoProjetos.Migrations
  5. {
  6. /// <inheritdoc />
  7. public partial class projetocodigo2 : Migration
  8. {
  9. /// <inheritdoc />
  10. protected override void Up(MigrationBuilder migrationBuilder)
  11. {
  12. migrationBuilder.AlterColumn<Guid>(
  13. name: "Codigo",
  14. table: "Projeto",
  15. type: "uniqueidentifier",
  16. nullable: false,
  17. oldClrType: typeof(string),
  18. oldType: "nvarchar(max)");
  19. }
  20. /// <inheritdoc />
  21. protected override void Down(MigrationBuilder migrationBuilder)
  22. {
  23. migrationBuilder.AlterColumn<string>(
  24. name: "Codigo",
  25. table: "Projeto",
  26. type: "nvarchar(max)",
  27. nullable: false,
  28. oldClrType: typeof(Guid),
  29. oldType: "uniqueidentifier");
  30. }
  31. }
  32. }