mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-10 09:18:27 -04:00
19 lines
846 B
C#
19 lines
846 B
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
namespace NadekoBot.Migrations
|
|
{
|
|
public static class Helper
|
|
{
|
|
public static void BotconfigClear(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.Sql(@"INSERT INTO Blacklist(DateAdded, ItemID, Type)
|
|
SELECT DateAdded, ItemId, Type FROM BlacklistItem;");
|
|
|
|
migrationBuilder.Sql(@"INSERT INTO AutoCommands(DateAdded, CommandText, ChannelId, ChannelName, GuildId, GuildName, VoiceChannelId, VoiceChannelName, Interval)
|
|
SELECT DateAdded, CommandText, ChannelId, ChannelName, GuildId, GuildName, VoiceChannelId, VoiceChannelName, Interval FROM StartupCommand;");
|
|
|
|
migrationBuilder.Sql(@"INSERT INTO RotatingStatus(DateAdded, Status, Type)
|
|
SELECT DateAdded, Status, Type FROM PlayingStatus;");
|
|
}
|
|
}
|
|
} |