fix #4855 - dropping required column causes issue on SQLite

This commit is contained in:
sbwalker
2024-11-22 11:55:43 -05:00
parent 043fb1abd1
commit 7d94e4a53a
5 changed files with 42 additions and 4 deletions

View File

@ -31,7 +31,7 @@ namespace Oqtane.Repository
.ToList()
.ForEach(l => l.IsDefault = false);
}
language.Name = ""; // stored in database but not used (SQLite limitation)
db.Language.Add(language);
db.SaveChanges();
@ -55,6 +55,7 @@ namespace Oqtane.Repository
.ForEach(l => l.IsDefault = false);
}
language.Name = ""; // stored in database but not used (SQLite limitation)
db.SaveChanges();
}