Upgrade - Database Conversion Problems
Posted: Sun Jul 22, 2007 8:02 am
Hello Team,
I have been upgrading to a newer versions of Opendental myself and each time I upgrade to a newer version, I wrestle with the fact that there is something in the table structure or data in my current version which does not match with what is expected in the newer version.
For Example : CodeNum column recently (version 5.x) added to one of the tables (I think it was the procedurelog or something) expects that column to be Not Null but then it pulls data from some column which has Null data (so the database conversion fails).
I have found a work-around for dealing with such problems but that would mean I have to try the database conversion 'N' number of times, until all such database conversion problems are fixed.
It would be great if we could have a database (data / structure integrity) check script prior to the start of the database conversion and it would throw out a report about everything that is wrong with the current version which would stop a successful conversion. This way, We could bring the database to a state which is acceptable for the upgrade . Still better, if the database integrity check can itself give options of 'Do you want to update the Null' values with '0' or some such options.
Ofcourse, it is a mystery to me on why the database (date / structure integrity) is compromised from one version to another but I think that has a lot to do with some minor data integrity related bugs along the way from one minor version to another. Not sure about this part but that is the only thing that I can think of why the database would be in this condition.
Dr. Sparks / Team, Any thoughts on how to deal with it. More importantly, does anyone else also have similar problems during upgrade ?
Cheers,
OpenSource
I have been upgrading to a newer versions of Opendental myself and each time I upgrade to a newer version, I wrestle with the fact that there is something in the table structure or data in my current version which does not match with what is expected in the newer version.
For Example : CodeNum column recently (version 5.x) added to one of the tables (I think it was the procedurelog or something) expects that column to be Not Null but then it pulls data from some column which has Null data (so the database conversion fails).
I have found a work-around for dealing with such problems but that would mean I have to try the database conversion 'N' number of times, until all such database conversion problems are fixed.
It would be great if we could have a database (data / structure integrity) check script prior to the start of the database conversion and it would throw out a report about everything that is wrong with the current version which would stop a successful conversion. This way, We could bring the database to a state which is acceptable for the upgrade . Still better, if the database integrity check can itself give options of 'Do you want to update the Null' values with '0' or some such options.
Ofcourse, it is a mystery to me on why the database (date / structure integrity) is compromised from one version to another but I think that has a lot to do with some minor data integrity related bugs along the way from one minor version to another. Not sure about this part but that is the only thing that I can think of why the database would be in this condition.
Dr. Sparks / Team, Any thoughts on how to deal with it. More importantly, does anyone else also have similar problems during upgrade ?
Cheers,
OpenSource