forked from EllieBotDevs/elliebot
35 lines
1 KiB
C#
35 lines
1 KiB
C#
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|||
|
|
|||
|
#nullable disable
|
|||
|
|
|||
|
namespace EllieBot.Migrations
|
|||
|
{
|
|||
|
/// <inheritdoc />
|
|||
|
public partial class honeypot : Migration
|
|||
|
{
|
|||
|
/// <inheritdoc />
|
|||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.CreateTable(
|
|||
|
name: "HoneyPotChannels",
|
|||
|
columns: table => new
|
|||
|
{
|
|||
|
GuildId = table.Column<ulong>(type: "INTEGER", nullable: false)
|
|||
|
.Annotation("Sqlite:Autoincrement", true),
|
|||
|
ChannelId = table.Column<ulong>(type: "INTEGER", nullable: false)
|
|||
|
},
|
|||
|
constraints: table =>
|
|||
|
{
|
|||
|
table.PrimaryKey("PK_HoneyPotChannels", x => x.GuildId);
|
|||
|
});
|
|||
|
}
|
|||
|
|
|||
|
/// <inheritdoc />
|
|||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.DropTable(
|
|||
|
name: "HoneyPotChannels");
|
|||
|
}
|
|||
|
}
|
|||
|
}
|