- 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:
Kwoth
2021-06-21 09:55:53 +02:00
parent 34f6902c95
commit 1ca8f188cd
251 changed files with 3910 additions and 223484 deletions

View File

@@ -51,7 +51,6 @@ namespace NadekoBot.Services.Database
public DbSet<AutoCommand> AutoCommands { get; set; }
public DbSet<RewardedUser> RewardedUsers { get; set; }
public DbSet<Stake> Stakes { get; set; }
public DbSet<PlantedCurrency> PlantedCurrency { get; set; }
public DbSet<BanTemplate> BanTemplates { get; set; }
public DbSet<DiscordPermOverride> DiscordPermOverrides { get; set; }
@@ -142,14 +141,6 @@ namespace NadekoBot.Services.Database
#endregion
#region Permission
var permissionEntity = modelBuilder.Entity<Permission>();
permissionEntity
.HasOne(p => p.Next)
.WithOne(p => p.Previous)
.IsRequired(false);
#endregion
#region MusicPlaylists
var musicPlaylistEntity = modelBuilder.Entity<MusicPlaylist>();