greet rework should be finished. Fixed postgres, removed mysql

This commit is contained in:
Toastie 2024-09-14 00:30:31 +12:00
parent 2902921026
commit 52b15131b9
Signed by: toastie_t0ast
GPG key ID: 27F3B6855AFD40A4
51 changed files with 39 additions and 88625 deletions
src/EllieBot/Db

View file

@ -690,6 +690,17 @@ public abstract class EllieContext : DbContext
})
.IsUnique());
modelBuilder.Entity<GreetSettings>(gs =>
{
gs
.Property(x => x.IsEnabled)
.HasDefaultValue(false);
gs
.Property(x => x.AutoDeleteTimer)
.HasDefaultValue(0);
});
#endregion
}