* src/GrampsBSDDB.py: display upgrade messages to stdout

svn: r4125
This commit is contained in:
Don Allingham 2005-03-07 04:57:22 +00:00
parent 47efc514f4
commit 44c64eac09
2 changed files with 5 additions and 0 deletions

View File

@ -1,3 +1,6 @@
2005-03-06 Don Allingham <don@gramps-project.org>
* src/GrampsBSDDB.py: display upgrade messages to stdout
2005-03-06 Don Allingham <dallingham@users.sourceforge.net> 2005-03-06 Don Allingham <dallingham@users.sourceforge.net>
* src/GrampsBSDDB.py: add upgrade to version 3 for new Name type * src/GrampsBSDDB.py: add upgrade to version 3 for new Name type
* src/NameEdit.py: add date editor field * src/NameEdit.py: add date editor field

View File

@ -367,6 +367,7 @@ class GrampsBSDDB(GrampsDbBase):
version = self.metadata['version'] version = self.metadata['version']
if version < 2: if version < 2:
print "Upgrading to DB version 2"
cursor = self.get_person_cursor() cursor = self.get_person_cursor()
data = cursor.first() data = cursor.first()
while data: while data:
@ -391,6 +392,7 @@ class GrampsBSDDB(GrampsDbBase):
data = cursor.next() data = cursor.next()
cursor.close() cursor.close()
if version < 3: if version < 3:
print "Upgrading to DB version 3"
cursor = self.get_person_cursor() cursor = self.get_person_cursor()
data = cursor.first() data = cursor.first()
while data: while data: