d8cf209653d52554fbd1f4ec7f0f00bc19cd82fe,src/schema.py,,bayesdb_install_schema,#Any#,83

Before Change


            // XXX Maybe push the foreign keys pragma to caller.
            db.execute("PRAGMA foreign_keys = ON")
            db.execute("PRAGMA application_id = %d" % (0x42594442,))
            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,))

After Change


    elif user_version != 5:
        raise IOError("Unknown bayeslite format version: %d" % (user_version,))
    db.execute("PRAGMA foreign_keys = ON")
    db.execute("PRAGMA integrity_check")
    db.execute("PRAGMA foreign_key_check")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


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


Project Name: probcomp/bayeslite
Commit Name: 2433781afbc0e279bda800624dcc4ecd21877bf7
Time: 2015-12-02
Author: riastradh+probcomp@csail.mit.edu
File Name: src/schema.py
Class Name:
Method Name: bayesdb_install_schema


Project Name: probcomp/bayeslite
Commit Name: 2433781afbc0e279bda800624dcc4ecd21877bf7
Time: 2015-12-02
Author: riastradh+probcomp@csail.mit.edu
File Name: src/schema.py
Class Name:
Method Name: _upgrade_schema