# The default is unspecified according to <http://www.sqlite.org/foreignkeys.html#fk_enable>.
c.execute("PRAGMA foreign_keys = ON;")
+ # This is necessary to pass tests for the time being, since using
+ # synchronous = NORMAL causes failures that are apparently due to a
+ # file descriptor leak, and the default synchronous = FULL causes the
+ # tests to time out. For discussion see
+ # https://tahoe-lafs.org/pipermail/tahoe-dev/2012-December/007877.html
+ #c.execute("PRAGMA journal_mode = WAL;")
+ c.execute("PRAGMA synchronous = OFF;")
+
if must_create:
c.executescript(schema)
c.execute("INSERT INTO version (version) VALUES (?)", (target_version,))