using Microsoft.EntityFrameworkCore.Migrations; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable namespace PhotoShareDb.Migrations { /// public partial class AddDesireTable : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "T_DesireData", columns: table => new { Key = table.Column(type: "integer", nullable: false) .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), Desire = table.Column(type: "text", nullable: false) }, constraints: table => { table.PrimaryKey("PK_T_DesireData", x => x.Key); }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "T_DesireData"); } } }