using Microsoft.EntityFrameworkCore.Migrations; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable namespace DaSaSo.EntityFramework.Migrations { public partial class PhotoDocumentation_Added : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "PhotoDocumentation", columns: table => new { Id = table.Column(type: "integer", nullable: false) .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), PicturePath = table.Column(type: "text", nullable: true), Description = table.Column(type: "text", nullable: true) }, constraints: table => { table.PrimaryKey("PK_PhotoDocumentation", x => x.Id); }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "PhotoDocumentation"); } } }