| 12345678910111213141516171819202122232425262728293031 |
- using Microsoft.EntityFrameworkCore.Migrations;
-
- #nullable disable
-
- namespace Diligent.WebAPI.Data.Migrations
- {
- public partial class AddedTechnology : Migration
- {
- protected override void Up(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.CreateTable(
- name: "Technologies",
- columns: table => new
- {
- TechnologyId = table.Column<int>(type: "int", nullable: false)
- .Annotation("SqlServer:Identity", "1, 1"),
- Name = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_Technologies", x => x.TechnologyId);
- });
- }
-
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.DropTable(
- name: "Technologies");
- }
- }
- }
|