Adds role specific channels.
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace EventBot.Migrations.Sqlite
|
||||
{
|
||||
public partial class AutoRolesAndChannels : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<ulong>(
|
||||
name: "AutoRoleChannelCategoryId",
|
||||
table: "GuildConfigs",
|
||||
nullable: false,
|
||||
defaultValue: 0ul);
|
||||
|
||||
migrationBuilder.AddColumn<ulong>(
|
||||
name: "ChannelId",
|
||||
table: "EventRoles",
|
||||
nullable: false,
|
||||
defaultValue: 0ul);
|
||||
|
||||
migrationBuilder.AddColumn<ulong>(
|
||||
name: "RoleId",
|
||||
table: "EventRoles",
|
||||
nullable: false,
|
||||
defaultValue: 0ul);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "AutoRoleChannelCategoryId",
|
||||
table: "GuildConfigs");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ChannelId",
|
||||
table: "EventRoles");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "RoleId",
|
||||
table: "EventRoles");
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user