using Microsoft.EntityFrameworkCore.Migrations; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable namespace DatabaseImplement.Migrations { public partial class abobus : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "Deliverys", columns: table => new { Id = table.Column(type: "integer", nullable: false) .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), FCs = table.Column(type: "text", nullable: false), DeliveryType = table.Column(type: "text", nullable: false), Wishes = table.Column(type: "text", nullable: false), DeliveryDate = table.Column(type: "text", nullable: true) }, constraints: table => { table.PrimaryKey("PK_Deliverys", x => x.Id); }); migrationBuilder.CreateTable( name: "DeliveryTypes", columns: table => new { Id = table.Column(type: "integer", nullable: false) .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), Name = table.Column(type: "text", nullable: false) }, constraints: table => { table.PrimaryKey("PK_DeliveryTypes", x => x.Id); }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "Deliverys"); migrationBuilder.DropTable( name: "DeliveryTypes"); } } }