Database migrations: Support DateOnly and TimeOnly in syntax providers (#20784)

* sql column type map include dateonly and timeonly

* Split Mapper and add check null value

* Minor code tidy resolving a few warnings.

* add spaces

* clean code

---------

Co-authored-by: Lan Nguyen Thuy <lnt@umbraco.dk>
Co-authored-by: Andy Butland <abutland73@gmail.com>
This commit is contained in:
NguyenThuyLan
2025-11-13 11:10:51 +07:00
committed by GitHub
parent ca15aadf0e
commit 139b528bda
7 changed files with 163 additions and 36 deletions

View File

@@ -96,6 +96,8 @@ public class SqliteTestDatabase : BaseTestDatabase, ITestDatabase
database.Mappers.Add(new NullableDateMapper());
database.Mappers.Add(new SqlitePocoGuidMapper());
database.Mappers.Add(new SqlitePocoDecimalMapper());
database.Mappers.Add(new SqlitePocoDateAndTimeOnlyMapper());
foreach (var dbCommand in _cachedDatabaseInitCommands)
{