Openbravo Issue Tracking System - Retail Modules
View Issue Details
0026157Retail ModulesWeb POSpublic2014-04-03 11:072016-03-09 09:40
marvintm 
marvintm 
normalmajorhave not tried
closedduplicate 
5
 
RR15Q2 
marvintm
No
0026157: Web POS doesn't reset the database if the modules or the Web POS itself change
Currently there are methods in the Web POS which check if the database version is too old, and reset the whole database in case the version changed. This is done to ensure that the structure of the database corresponds to what is defined in the current version of the Web POS sources.

However, this mechanism doesn't work correctly. The main problem is that the version of the local database is compared against a hardcoded value contained in the login-model.js file. This hardcoded value is not being updated automatically, and moreover, it's not taking into account the fact that external modules could be installed in the system, and they could be updating the database structure too.
- Update the Web POS.
- Go to the Web POS URL. Realize that the database was not reset even if the Web POS was updated.
The database version should be dynamically generated from the versions of the Web POS module plus all the modules which depend on it, in a similar way as the UUID which is generated for the Javascript file which contains all static resources (it could even be the same UUID).
No tags attached.
duplicate of defect 0029055RR15Q2 closed marvintm Web POS doesn't handle update of local database tables correctly 
Issue History
2014-04-03 11:07marvintmNew Issue
2014-04-03 11:07marvintmAssigned To => marvintm
2014-04-03 11:07marvintmTriggers an Emergency Pack => No
2016-03-09 09:40marvintmReview Assigned To => marvintm
2016-03-09 09:40marvintmRelationship addedduplicate of 0029055
2016-03-09 09:40marvintmStatusnew => closed
2016-03-09 09:40marvintmResolutionopen => duplicate
2016-03-09 09:40marvintmFixed in Version => RR15Q2

There are no notes attached to this issue.