2017-01-10 12:37:35 +00:00
|
|
|
|
using System;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
|
|
|
|
|
|
namespace NadekoBot.Migrations
|
|
|
|
|
{
|
|
|
|
|
public partial class repeaterdrop : Migration
|
|
|
|
|
{
|
|
|
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
|
|
|
{
|
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "Repeaters");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
|
|
|
{
|
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "Repeaters",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
Id = table.Column<int>(nullable: false)
|
|
|
|
|
.Annotation("Sqlite:Autoincrement", true),
|
|
|
|
|
ChannelId = table.Column<ulong>(nullable: false),
|
|
|
|
|
GuildId = table.Column<ulong>(nullable: false),
|
|
|
|
|
Interval = table.Column<TimeSpan>(nullable: false),
|
|
|
|
|
Message = table.Column<string>(nullable: true)
|
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("PK_Repeaters", x => x.Id);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
2017-05-29 04:13:22 +00:00
|
|
|
|
name: "IX_Repeaters_channelId",
|
2017-01-10 12:37:35 +00:00
|
|
|
|
table: "Repeaters",
|
|
|
|
|
column: "ChannelId",
|
|
|
|
|
unique: true);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|