mirror of
https://github.com/yawaflua/PL_JusticeBot.git
synced 2025-12-08 19:39:27 +02:00
49 lines
1.5 KiB
C#
49 lines
1.5 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
|
|
|
#nullable disable
|
|
|
|
namespace DiscordApp.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class InitMigrate292124 : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
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<int>(type: "integer", nullable: false)
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
Employee = table.Column<string>(type: "text", nullable: false),
|
|
type = table.Column<int>(type: "integer", nullable: false)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_Reports", x => x.Id);
|
|
});
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropTable(
|
|
name: "Reports",
|
|
schema: "public");
|
|
|
|
migrationBuilder.RenameTable(
|
|
name: "Bizness",
|
|
schema: "public",
|
|
newName: "Bizness");
|
|
}
|
|
}
|
|
}
|