ace/Source/ACE.Database/Models
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
..
Auth Add Creation/LastLogin IP/DateTime (#1985) 2019-07-06 16:12:24 -05:00
Shard Set all Shard non-zero defaults to zero (#2459) 2019-11-26 16:28:37 -05:00
World Minor coinstack / PreCheckItem refactor (#2218) 2019-08-11 23:44:21 -05:00