witten
/
luminotes
Archived
1
0
Fork 0

Optimization to bail early if the database is already all upgraded.

This commit is contained in:
Dan Helfman 2008-10-15 21:49:20 -07:00
parent d79876999a
commit a77267d9e4
1 changed files with 4 additions and 0 deletions

View File

@ -53,6 +53,10 @@ class Schema_upgrader:
except:
from_version = ( 1, 5, 4 )
# if the database schema version is already equal to to_version, there's nothing to do
if to_version == from_version:
return
if self.__database.backend == Persistent.SQLITE_BACKEND:
extension = u"sqlite"
else: