mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-14 19:51:29 +00:00
[Database] Proper default for droptime from object_contents (#4061)
This commit is contained in:
parent
86a2a86ba8
commit
6bc9bcf15a
@ -5355,6 +5355,16 @@ CREATE TABLE guild_tributes (
|
||||
.sql = R"(
|
||||
ALTER TABLE `character_corpses` MODIFY COLUMN `time_of_death` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP;
|
||||
)"
|
||||
},
|
||||
ManifestEntry{
|
||||
.version = 9262,
|
||||
.description = "2024_02_11_object_contents.sql",
|
||||
.check = "SHOW COLUMNS FROM `object_contents` LIKE 'droptime'",
|
||||
.condition = "contains",
|
||||
.match = "0000-00-00 00:00:00",
|
||||
.sql = R"(
|
||||
ALTER TABLE `character_corpses` MODIFY COLUMN `droptime` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP;
|
||||
)"
|
||||
}
|
||||
// -- template; copy/paste this when you need to create a new entry
|
||||
// ManifestEntry{
|
||||
|
||||
@ -116,7 +116,7 @@ public:
|
||||
e.bagidx = 0;
|
||||
e.itemid = 0;
|
||||
e.charges = 0;
|
||||
e.droptime = 0;
|
||||
e.droptime = std::time(nullptr);
|
||||
e.augslot1 = 0;
|
||||
e.augslot2 = 0;
|
||||
e.augslot3 = 0;
|
||||
|
||||
@ -42,7 +42,7 @@
|
||||
* Manifest: https://github.com/EQEmu/Server/blob/master/utils/sql/db_update_manifest.txt
|
||||
*/
|
||||
|
||||
#define CURRENT_BINARY_DATABASE_VERSION 9261
|
||||
#define CURRENT_BINARY_DATABASE_VERSION 9262
|
||||
#define CURRENT_BINARY_BOTS_DATABASE_VERSION 9042
|
||||
|
||||
#endif
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user