@@ -0,0 +1,889 @@
+#%0A# Copyright (c) 2005 rPath Inc.%0A# All rights reserved%0A#%0A%0Aimport database%0Aimport time%0A%0Aclass VersionTable(database.KeyedTable):%0A    name = %22DatabaseVersion%22%0A    createSQL = %22%22%22%0A                CREATE TABLE DatabaseVersion (%0A                    version INTEGER PRIMARY KEY,%0A                    timestamp REAL%0A                )%22%22%22%0A%0A    fields = %5B'version'%5D%0A    indexes = %7B'DatabaseVersionIdx': 'CREATE INDEX DatabaseVersionIdx ON DatabaseVersion(version)'%7D%0A%0A    def versionCheck(self):%0A        cu = self.db.cursor()%0A        version = self.getDBVersion()%0A        if version != self.schemaVersion:%0A            #Push the version so that we won't try updating in the future%0A            cu.execute(%22INSERT into DatabaseVersion (version, timestamp) VALUES(?, ?)%22, self.schemaVersion, time.time())%0A            return self.getDBVersion() == self.schemaVersion%0A        else:%0A            return True%0A

Add missing file