mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 01:38:27 -04:00
Killed history
This commit is contained in:
19
NadekoBot.Core/Migrations/MigrationHelper.cs
Normal file
19
NadekoBot.Core/Migrations/MigrationHelper.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
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;");
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user