5ba3581c4ff4584d56ef45ffbd9b94560d23b658,src/schema.py,,bayesdb_install_schema,#Any#,77

Before Change


    // Check the schema version and apply upgrades if necessary.
    if user_version == 3:
        with db:
            db.executescript(bayesdb_schema_3to4)
    elif user_version == 4:
        pass
    else:
        raise IOError("Unknown database version: %d" % (user_version,))

After Change


        with db:
            // XXX Maybe push the foreign keys pragma to caller.
            db.execute("PRAGMA foreign_keys = ON")
            db.executescript("BEGIN;" + bayesdb_schema_5 + "COMMIT")
    elif application_id != 0x42594442:
        raise IOError("Wrong application id: 0x%08x" % (application_id,))
    elif user_version != 5:
        raise IOError("Unknown bayeslite format version: %d" % (user_version,))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: probcomp/bayeslite
Commit Name: 5ba3581c4ff4584d56ef45ffbd9b94560d23b658
Time: 2015-03-18
Author: riastradh+probcomp@csail.mit.edu
File Name: src/schema.py
Class Name:
Method Name: bayesdb_install_schema


Project Name: probcomp/bayeslite
Commit Name: 6e5e917796bf8613338d7c77f9d84b54a28c9d00
Time: 2015-09-29
Author: tibbetts@innocuous.org
File Name: src/schema.py
Class Name:
Method Name: bayesdb_install_schema


Project Name: probcomp/bayeslite
Commit Name: d8cf209653d52554fbd1f4ec7f0f00bc19cd82fe
Time: 2015-03-25
Author: riastradh+probcomp@csail.mit.edu
File Name: src/schema.py
Class Name:
Method Name: bayesdb_install_schema