woops, forgot migrations, added timezone and locale to guildconfig

This commit is contained in:
Kwoth 2017-02-13 13:56:06 +01:00
parent 5571f74c52
commit fe4f9aad1e
4 changed files with 1133 additions and 1 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,34 @@
using System;
using System.Collections.Generic;
using Microsoft.EntityFrameworkCore.Migrations;
namespace NadekoBot.Migrations
{
public partial class guildtimezoneandlocale : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "Locale",
table: "GuildConfigs",
nullable: true,
defaultValue: null);
migrationBuilder.AddColumn<string>(
name: "TimeZoneId",
table: "GuildConfigs",
defaultValue: null);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Locale",
table: "GuildConfigs");
migrationBuilder.DropColumn(
name: "TimeZoneId",
table: "GuildConfigs");
}
}
}

View File

@ -469,6 +469,8 @@ namespace NadekoBot.Migrations
b.Property<ulong>("GuildId");
b.Property<string>("Locale");
b.Property<int?>("LogSettingId");
b.Property<string>("MuteRoleName");
@ -483,6 +485,8 @@ namespace NadekoBot.Migrations
b.Property<bool>("SendDmGreetMessage");
b.Property<string>("TimeZoneId");
b.Property<bool>("VerbosePermissions");
b.Property<bool>("VoicePlusTextEnabled");

View File

@ -64,7 +64,8 @@ namespace NadekoBot.Services.Database.Models
public AntiRaidSetting AntiRaidSetting { get; set; }
public AntiSpamSetting AntiSpamSetting { get; set; }
public string Locale { get; set; }
public string Locale { get; set; } = null;
public string TimeZoneId { get; set; } = null;
//public List<ProtectionIgnoredChannel> ProtectionIgnoredChannels { get; set; } = new List<ProtectionIgnoredChannel>();
}