Optimization to bail early if the database is already all upgraded.
This commit is contained in:
parent
d79876999a
commit
a77267d9e4
|
@ -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:
|
||||
|
|
Reference in New Issue