using Microsoft.EntityFrameworkCore.Migrations; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable namespace DiscordApp.Migrations { /// public partial class InitMigrate292124 : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.RenameTable( name: "Bizness", newName: "Bizness", newSchema: "public"); migrationBuilder.CreateTable( name: "Reports", schema: "public", columns: table => new { Id = table.Column(type: "integer", nullable: false) .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), Employee = table.Column(type: "text", nullable: false), type = table.Column(type: "integer", nullable: false) }, constraints: table => { table.PrimaryKey("PK_Reports", x => x.Id); }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "Reports", schema: "public"); migrationBuilder.RenameTable( name: "Bizness", schema: "public", newName: "Bizness"); } } }