Submit pull request?
-
Currently Zotpress_install() is called whenever there is a change to the database structure. This function drops and re-creates each table, which has the effect of losing the user’s account data. Since dbDelta can update table structure in-place, I suggest not dropping current tables for database updates. However, I see that dropping these tables was added in 2019, so perhaps there was an issue that I’m not aware of?
We run a multisite with about 100 sites that use zotpress, so we’ve been stuck on zotpress 6.2.4 for a while now because we don’t want our users to lose their account settings. I created a fork here: https://github.com/MESH-Research/zotpress and a PR here: https://github.com/MESH-Research/zotpress/pull/1 with my (minor) changes. If these changes don’t break anything we’d be very happy for them to be incorporated into your plugin so that we don’t have to maintain a forked version and other users of the plugin don’t have to re-enter their account information when updating.
Thanks!
- The topic ‘Submit pull request?’ is closed to new replies.