mirror of
https://github.com/yawaflua/PL_JusticeBot.git
synced 2026-02-04 10:34:13 +02:00
pisua
This commit is contained in:
48
Migrations/20231029182451_InitMigrate292124.cs
Normal file
48
Migrations/20231029182451_InitMigrate292124.cs
Normal file
@@ -0,0 +1,48 @@
|
||||
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");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user