woops, forgot migrations, added timezone and locale to guildconfig
This commit is contained in:
		
							
								
								
									
										1093
									
								
								src/NadekoBot/Migrations/20170213125444_guild-timezone-and-locale.Designer.cs
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										1093
									
								
								src/NadekoBot/Migrations/20170213125444_guild-timezone-and-locale.Designer.cs
									
									
									
										generated
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							@@ -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");
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
@@ -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");
 | 
			
		||||
 
 | 
			
		||||
@@ -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>();
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user