From 1cf3a2a99cea67e0f710eab3b1dbdeda4c70cdf6 Mon Sep 17 00:00:00 2001 From: Martin Hawlisch Date: Fri, 24 Jun 2005 22:00:03 +0000 Subject: [PATCH] * src/GrampsBSDDB.py (upgrade): Disable upgrade_7 until this is properly working to not accidently destroy a database from gramps20 svn: r4875 --- gramps2/ChangeLog | 4 ++++ gramps2/src/GrampsBSDDB.py | 8 +++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 3d7045f8c..0a3c3d4d8 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,7 @@ +2005-06-24 Martin Hawlisch + * src/GrampsBSDDB.py (upgrade): Disable upgrade_7 until this is + properly working to not accidently destroy a database from gramps20 + 2005-06-20 Don Allingham * src/GenericFilter.py: optimize looping and reducing fetches * src/Utils.py: fix event handle accesses diff --git a/gramps2/src/GrampsBSDDB.py b/gramps2/src/GrampsBSDDB.py index bb7271313..7c553db24 100644 --- a/gramps2/src/GrampsBSDDB.py +++ b/gramps2/src/GrampsBSDDB.py @@ -516,10 +516,12 @@ class GrampsBSDDB(GrampsDbBase): self.upgrade_5() if version < 6: self.upgrade_6() - if version < 7: - self.upgrade_7() self.metadata['version'] = _DBVERSION - print 'Successfully finished all upgrades' + if version < 7: + #self.upgrade_7() + raise Exception("Currently there is no database upgrade available") + else: + print 'Successfully finished all upgrades' def upgrade_2(self,child_rel_notrans): print "Upgrading to DB version 2"