mirror of
				https://gitlab.com/Kwoth/nadekobot.git
				synced 2025-11-03 16:24:27 -05:00 
			
		
		
		
	- Removed all migrations, added squash instead which will build the database, prerequisite for this migration to be skipped is to be on the latest version of 2.x before moving over
- Added cleanup migration, it will clean the ef migration history, and delete unused fields - Started working on README.md
This commit is contained in:
		@@ -2,13 +2,6 @@
 | 
			
		||||
 | 
			
		||||
namespace NadekoBot.Modules.Permissions.Common
 | 
			
		||||
{
 | 
			
		||||
    public class OldPermissionCache
 | 
			
		||||
    {
 | 
			
		||||
        public string PermRole { get; set; }
 | 
			
		||||
        public bool Verbose { get; set; } = true;
 | 
			
		||||
        public Permission RootPermission { get; set; }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public class PermissionCache
 | 
			
		||||
    {
 | 
			
		||||
        public string PermRole { get; set; }
 | 
			
		||||
 
 | 
			
		||||
@@ -121,11 +121,5 @@ namespace NadekoBot.Modules.Permissions.Common
 | 
			
		||||
 | 
			
		||||
            return prefix + com;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        public static IEnumerable<Permission> AsEnumerable(this Permission perm)
 | 
			
		||||
        {
 | 
			
		||||
            do yield return perm;
 | 
			
		||||
            while ((perm = perm.Next) != null);
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user