ace/Source/ACE.Database
Mag-nus 34d54c8cb1 Set all Shard non-zero defaults to zero (#2459)
* Set all Shard non-zero defaults to zero

There appears to be a bug in EF where, if the models value is not nullab,e and is 0, and the SQL columns default is not 0, the EF.SaveChanges() command will INSERT the record but omit the columns that are 0 value.

The DB will then add default values for the omitted columns.

The entire record is then returned as a result, and EF uses this to update the model, now setting those fields that were 0 to the new non-zero default.

This is the cause for the Jive Turkey emote delay issues.

The next step will be to create an update script that will set existing shard objects to their weenie defaults. The following tables will need to be investigated:
biota_properties_create_list
biota_properties_emote
biota_properties_emote_action

* biota_properties_spell_book probability
2019-11-26 16:28:37 -05:00
..
Entity Adding /hslist <housetype> to show list of available houses (#1373) 2019-01-26 15:14:32 -05:00
Extensions PurgeOrphanedBiotas (#2326) 2019-11-24 16:50:50 -06:00
Models Set all Shard non-zero defaults to zero (#2459) 2019-11-26 16:28:37 -05:00
SQLFormatters Add full support for Contracts (#2150) 2019-07-28 22:25:22 -05:00
ACE.Database.csproj Upgrade to .NET Core 2.2.1 (VS 2017 compatible) (#1833) 2019-07-10 06:24:08 -05:00
AuthenticationDatabase.cs Add Creation/LastLogin IP/DateTime (#1985) 2019-07-06 16:12:24 -05:00
DatabaseManager.cs PropertyManager Database Cleanup (#940) 2018-08-10 13:52:19 -05:00
Scaffolding Notes.txt persisting squelches to db (#2165) 2019-07-31 02:05:00 -04:00
SerializedShardDatabase.cs multihouse decommission (#2067) 2019-07-10 13:39:10 -04:00
ShardConfigDatabase.cs PropertyManager Database Cleanup (#940) 2018-08-10 13:52:19 -05:00
ShardDatabase.cs Multi-thread landblock ticking (Landblock Groups w/Thread Safety) (#2303) 2019-10-08 20:25:49 -05:00
ShardDatabaseOfflineTools.cs PurgeOrphanedBiotas (#2326) 2019-11-24 16:50:50 -06:00
WorldDatabase.cs Housing: Basements and Hooks changes (#2279) 2019-09-14 22:46:32 -05:00