UnoffLandz / unoff-landz

open source server for the eternal lands/other life client
9 stars 4 forks source link

Database update error #65

Closed themuntdregger closed 9 years ago

themuntdregger commented 9 years ago

When I run the U option, it creates the additional table in Game_data_table, but all the data is lost

nemerle commented 9 years ago

I think it should be working ok in the last commit: 842a2620e8be258e6c604d1f7468ff51a403bad1 If you can please verify

themuntdregger commented 9 years ago

Tried again. It creates the version table and adds the version number, but then terminates in a segfault.

nemerle commented 9 years ago

Hmm... can't recreate this. can you post the 'log' of the upgrade run ? Mine looks like this:

UnoffLandz Server - version 4

DB version update 0 to 1:UPGRADE [v0]: Creating database backup - ver_0_of_unoff.db
UPGRADE [v1]: Success
OK

Or, better yet, a backtrace would be great:

gdb ./unoff_server
(gdb) r
--- crash ---
(gdb) bt
---- Backtrace goodness here -----
themuntdregger commented 9 years ago

Will do

themuntdregger commented 9 years ago

Now seems to work fine