Bug 1097088
| Summary: | Drop DB should not be required when upgrading old version BPMS(6.0.0) to new version BPMS(6.0.1). | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Retired] JBoss BPMS Platform 6 | Reporter: | yuli wang <yulwang> | ||||||
| Component: | jBPM Core | Assignee: | Kris Verlaenen <kverlaen> | ||||||
| Status: | CLOSED WORKSFORME | QA Contact: | Jiri Svitak <jsvitak> | ||||||
| Severity: | high | Docs Contact: | |||||||
| Priority: | high | ||||||||
| Version: | 6.0.1 | CC: | mbaluch, xiabai, yulwang | ||||||
| Target Milestone: | --- | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2014-11-25 21:43:28 UTC | Type: | Bug | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Embargoed: | |||||||||
| Attachments: |
|
||||||||
|
Description
yuli wang
2014-05-13 06:49:00 UTC
Created attachment 895013 [details]
old db
Created attachment 895014 [details]
new db
This is a jbpm core issue. Could you elaborate how you are migrating from 6.0.0 to 6.0.1? Using a script, if so which? Could you also check the setting of the hibernate.hbm2ddl.auto property in jboss-eap-6.1/standalone/deployments/business-central.war/WEB-INF/classes/META-INF/persistence.xml I would recommend to upgrade the database using a script (which shouldn't require a drop of the database), not relying on hibernate auto-update of the tables, if you are upgrading a production database containing data. Hi: I using hibernate update model to upgrade BPMS. <property name="hibernate.hbm2ddl.auto" value="update" /> Excuse me , i do not know how to create script? You means, i create a script for all table and data? But, if BPMS' table have any change , this script will invalid. Cory, I just started bpms-6.0.0.GA (database reconfigured to jdbc:h2:~/jbpm-migration in standalone.xml), created an instance of the Evaluation process (from https://github.com/guvnorngtestuser1/jbpm-console-ng-playground-kjar) and shut it down, then started bpms-6.0.1.GA (database reconfigured to jdbc:h2:~/jbpm-migration), and it did still show the process instance and task created, I could successfully continue the process instance there. So when hibernate.hbm2ddl.auto is set to update, it should automatically be able to adjust to the changes without loss of data. Could you provide more detail on how to reproduce (which process, in what state) and the server log that might give some indication as well? (In reply to Kris Verlaenen from comment #7) > Cory, > > I just started bpms-6.0.0.GA (database reconfigured to > jdbc:h2:~/jbpm-migration in standalone.xml), created an instance of the > Evaluation process (from > https://github.com/guvnorngtestuser1/jbpm-console-ng-playground-kjar) and > shut it down, then started bpms-6.0.1.GA (database reconfigured to > jdbc:h2:~/jbpm-migration), and it did still show the process instance and > task created, I could successfully continue the process instance there. > > So when hibernate.hbm2ddl.auto is set to update, it should automatically be > able to adjust to the changes without loss of data. > > Could you provide more detail on how to reproduce (which process, in what > state) and the server log that might give some indication as well? Hi Kris, My database is mysql 5. When i install BPMS6.0.0GA, db have some *_ID_SEQ tables. Then i upgarde to BPMS6.0.1GA, db do not have these tbales. You can see attachment 895013 [details](BPMS6.0.0) and attachment 895014 [details] (BPMS6.0.1) Thanks Cory, It is possible that tables are changed etc. (due to auto-upgrade, or you could manually run a script upfront to upgrade tables). Once this is done however, the data in the old tables should still be there, and the process instances should be shown in the new version. The description seems to indicate otherwise, and we are not able to reproduce this. Kris Cannot reproduce this issue. Please reopen with clear instructions on how to reproduce if the issue persists. This issue can not reproduce BPMS 6.0.2. Thanks |