Open wrossmann opened 1 year ago
And maybe don't put your PHP closing bracket before the secret code so IT'S NOT BEING BLASTED OUT TO THE ENTIRE INTERNET!!!!
Haha yeah. I think that the upgrade script might just append the define()
statement to the settings file without checking if there's a closing ?>
at the end.
Was just helping a friend through a failed update to 1.7.0 and have some notes for the updater logic.
up()
anddown()
.config.version
to match, or use a separate version setting just for the migrations.array_pop(array_keys($this->updateList))
->array_slice(array_keys($this->updateList), -1)[0]
Specifically what I think happened is $friend started at
config.version == 1
and got up to 355 where a duplicate mod entry caused the whole thing to conk out, and then he got stuck at the noted migration for 112. Since the DB structure was already obviously changed we commented out the block. After seeing the duplicate key failure in 355 we reviewed the tables that appear to referencesb_mods
,sb_servers
andsb_submissions
, and removed the duplicate entry that was not referenced.