mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backed out changeset 562c3fe054e5 (bug 702559)
This commit is contained in:
parent
30907456d8
commit
17a1feeac3
@ -1163,7 +1163,7 @@ MetricsStorageSqliteBackend.prototype = Object.freeze({
|
||||
|
||||
// 1. Create the schema.
|
||||
yield self._connection.executeTransaction(function ensureSchema(conn) {
|
||||
let schema = yield conn.getSchemaVersion();
|
||||
let schema = conn.schemaVersion;
|
||||
|
||||
if (schema == 0) {
|
||||
self._log.info("Creating database schema.");
|
||||
@ -1172,7 +1172,7 @@ MetricsStorageSqliteBackend.prototype = Object.freeze({
|
||||
yield self._connection.execute(SQL[k]);
|
||||
}
|
||||
|
||||
yield self._connection.setSchemaVersion(1);
|
||||
self._connection.schemaVersion = 1;
|
||||
doCheckpoint = true;
|
||||
} else if (schema != 1) {
|
||||
throw new Error("Unknown database schema: " + schema);
|
||||
|
@ -80,7 +80,7 @@ add_task(function test_reconnect() {
|
||||
|
||||
add_task(function test_future_schema_errors() {
|
||||
let backend = yield Metrics.Storage("future_schema_errors");
|
||||
yield backend._connection.setSchemaVersion(2);
|
||||
backend._connection.schemaVersion = 2;
|
||||
yield backend.close();
|
||||
|
||||
let backend2;
|
||||
|
Loading…
Reference in New Issue
Block a user