mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 09:48:26 -04:00
16 lines
657 B
C#
16 lines
657 B
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
namespace NadekoBot.Migrations;
|
|
|
|
public static class MigrationQueries
|
|
{
|
|
public static void MigrateRero(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.Sql(
|
|
@"insert or ignore into reactionroles(guildid, channelid, messageid, emote, roleid, 'group', levelreq, dateadded)
|
|
select guildid, channelid, messageid, emotename, roleid, exclusive, 0, reactionrolemessage.dateadded
|
|
from reactionrole
|
|
left join reactionrolemessage on reactionrolemessage.id = reactionrole.reactionrolemessageid
|
|
left join guildconfigs on reactionrolemessage.guildconfigid = guildconfigs.id;");
|
|
}
|
|
} |