34 lines
1,016 B
C#
34 lines
1,016 B
C#
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|||
|
|
|||
|
#nullable disable
|
|||
|
|
|||
|
namespace EllieBot.Migrations.PostgreSql
|
|||
|
{
|
|||
|
/// <inheritdoc />
|
|||
|
public partial class honeypot : Migration
|
|||
|
{
|
|||
|
/// <inheritdoc />
|
|||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.CreateTable(
|
|||
|
name: "honeypotchannels",
|
|||
|
columns: table => new
|
|||
|
{
|
|||
|
guildid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|||
|
channelid = table.Column<decimal>(type: "numeric(20,0)", nullable: false)
|
|||
|
},
|
|||
|
constraints: table =>
|
|||
|
{
|
|||
|
table.PrimaryKey("pk_honeypotchannels", x => x.guildid);
|
|||
|
});
|
|||
|
}
|
|||
|
|
|||
|
/// <inheritdoc />
|
|||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.DropTable(
|
|||
|
name: "honeypotchannels");
|
|||
|
}
|
|||
|
}
|
|||
|
}
|