Read ME update Updating tile of role will update revelant channels and roles. Added command examples. Fixese leaks
44 lines
1.3 KiB
C#
44 lines
1.3 KiB
C#
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");
|
|
}
|
|
}
|
|
}
|