// XXX One of these days, we"ll have to consider making the
// upgrade something to be explicitly requested by the user
// when old versions persist.
db.executescript("BEGIN; %s; COMMIT;" % (bayesdb_schema_5to6,))
user_version = 6
if user_version != 6:
raise IOError("Unknown bayeslite format version: %d" % (user_version,))
After Change
// XXX One of these days, we"ll have to consider making the
// upgrade something to be explicitly requested by the user
// when old versions persist.
db.executescript("BEGIN; %s; COMMIT;" % (bayesdb_schema_upgrade[user_version],))
user_version += 1
if user_version != 7:
raise IOError("Unknown bayeslite format version: %d" % (user_version,))
db.execute("PRAGMA foreign_keys = ON")