-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update to 2.8.5 with warnings but backup table is empty / old deleted forms are displayed #1513
Comments
|
Hi From which version did you upgrade the plugin ? |
I did not take a screenshot.... but at least we had 2.6.x because we had glpi 9.3.3 |
@btry btw are you working for teclib ?
|
1 - I don't fully understand your assumption 2 - you may try it but you also need to restore the files of Formcreator matching the version found in the backup, table glpi_plugins. If not, after accessing any web page of GLPI, the version in the DB will be replaced by the version if the currently installed version of Formcreator. I suggest you just check the version in the table glpi_plugins in the backup (if it is a SQL dump), or ensure you don't do any access to GLPI before reading the content of this table. Yes I'm working for Teclib'. I did not received this issue : it is already handled as far I see. As you have subscribed to support (I guess), then prefer opening issues on our support platform and benefit higher priority. |
But i got sql error message at begin
|
the strange forms have all is_deleted = 1 in the old release ;) the column might be gone through #1269. possible answer for my problem
|
Hi Your SQL error in the display preferences table might be related to old changed in the life of the plugin.The itemtype "PluginFormcreatorFormAnswer" changed several times with the name PluginFormcreatorForm_Answer (note the underscore between Form and Answer). Moreover, long ago, the plugin did not clean up properly the DB in the uninstallatin process. I would suspect that those old problems left some inconsistencies in the DB if you used Formcreator for years. I would suggest that you have a look in the backup before the upgrade. In Formcreator 2.6, the itemtype was named PluginFormcreator_Form_Answer. Search in the table glpi_displaypreferences Find rows having itemtype = "PluginFormcreatorFormAnswer" (without the underscore). It yes, then those rows will cause a failure when renaming display preferences from PluginFormcreator_Form_Answer to PluginFormcreator_FormAnswer. To avoid that, just delete those lines. I agree that when the column is_deleted is being dropped, the rows where is_deleted = 1 should be dropped. |
In my case the update is already done. :(
+-----+-------------+----------------+-------+ And now i have
mysql> mysql> select * from glpi_displaypreferences where itemtype = "PluginFormcreator_Form_Answer"; |
fix pluginsGLPI#1513 Signed-off-by: Thierry Bugier <tbugier@teclib.com>
Hi If you drop the rows whenre itemtype = "PluginFormcreatorFormAnswer" then the upgrade process will no longer fail. I recommend you check the related view in the plugin to ensure you have all expected columns, and edit your global preferences if needed. I created a fix to drop the deleted FormAnswers when dropping the is_deleted column. Do you have an opportunity to validate it by running an upgrade from < 2.7 to 2.7 or later ? |
fix pluginsGLPI#1513 Signed-off-by: Thierry Bugier <tbugier@teclib.com>
Yes i can test the fix next week on dev system and old backup. |
Hi Did you had time to validate the upgrade fix ? |
fix #1513 Signed-off-by: Thierry Bugier <tbugier@teclib.com>
Hi Having no feedback, I assume I did he patch properly, and I close this ticket. Feel free to open a new one if needed |
Describe the bug
Update with warnings but backup table was empty
To Reproduce
yy@xx:/var/www/glpi/files/_log# cat warning_during_migration_to_2.8.5.log.20191002.bak 2019-10-02 13:19:57 [6@xx] glpi_plugin_formcreator_formanswers Tabelle existiert bereits. Es wurde eine Sicherung durchgeführt, um backup_glpi_plugin_formcreator_formanswers @ 2019-10-02 13:19:57 [6@xx] You can delete backup tables if you have no need of them. @ yy@xx:/var/www/glpi/files/_log#
Expected behavior
Backup table should not be empty - but in my case the production was on a not realeased version a few years ago but i thought now is all good with #1250. but it isn't i have 15 forms that were already declined but after upgrade they are in pending state. the problem the first 2 days we worked on production we did not see this problem. Can i restore these 15 forms from the original backup version on glpi 9.3.3. we changed to 9.4.4
The text was updated successfully, but these errors were encountered: