using Microsoft.EntityFrameworkCore.Migrations; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; namespace DataStoring.EfCore.Migrations { public partial class Initialcommit : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "AuftraggeberSet", columns: table => new { Id = table.Column(type: "integer", nullable: false) .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), Name = table.Column(type: "text", nullable: true), Ort = table.Column(type: "text", nullable: true), Strasse = table.Column(type: "text", nullable: true), Tel = table.Column(type: "text", nullable: true) }, constraints: table => { table.PrimaryKey("PK_AuftraggeberSet", x => x.Id); }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "AuftraggeberSet"); } } }