Core/Misc: Change all unix time columns in character database to bigint (signed)

Port From (https://github.com/TrinityCore/TrinityCore/commit/d29dd1eeb5c52dc76bd741fe1ee0e875c416b8e7)
This commit is contained in:
hondacrx
2021-04-06 23:32:52 -04:00
parent b274d1f6ab
commit be2292e815
25 changed files with 243 additions and 141 deletions
@@ -91,7 +91,7 @@ namespace Game
{
uint criteriaId = criteriaResult.Read<uint>(0);
ulong counter = criteriaResult.Read<ulong>(1);
long date = criteriaResult.Read<uint>(2);
long date = criteriaResult.Read<long>(2);
Criteria criteria = Global.CriteriaMgr.GetCriteria(criteriaId);
if (criteria == null)
@@ -154,7 +154,7 @@ namespace Game
stmt.AddValue(0, _owner.GetGUID().GetCounter());
stmt.AddValue(1, pair.Key);
stmt.AddValue(2, pair.Value.Counter);
stmt.AddValue(3, (uint)pair.Value.Date);
stmt.AddValue(3, pair.Value.Date);
trans.Append(stmt);
}