diff --git a/packages/core/src/database/database.ts b/packages/core/src/database/database.ts index 5cf243fd028a..f74d31874006 100644 --- a/packages/core/src/database/database.ts +++ b/packages/core/src/database/database.ts @@ -45,7 +45,6 @@ const databaseLayer = (lock: Effect.Effect, legacyCredentia yield* db.run("PRAGMA synchronous = NORMAL") yield* db.run("PRAGMA busy_timeout = 5000") yield* db.run("PRAGMA cache_size = -64000") - yield* db.run("PRAGMA wal_checkpoint(PASSIVE)") } // Durable Object SQLite always enforces foreign keys and rejects the pragma. if (supportsForeignKeyToggle && !durableObject) yield* db.run("PRAGMA foreign_keys = ON") diff --git a/packages/core/src/database/sqlite.workerd.ts b/packages/core/src/database/sqlite.workerd.ts index 73acde76dc2c..1a583b5fa256 100644 --- a/packages/core/src/database/sqlite.workerd.ts +++ b/packages/core/src/database/sqlite.workerd.ts @@ -11,8 +11,8 @@ const TypeId = "~@opencode/core/database/SqliteWorkerd" as const type TypeId = typeof TypeId // Durable Object SQLite only allowlists introspection pragmas; journal_mode, -// synchronous, busy_timeout, cache_size, and wal_checkpoint all throw, and -// foreign keys are already enforced by default (SQLITE_DEFAULT_FOREIGN_KEYS=1). +// synchronous, busy_timeout and cache_size all throw, and foreign keys are +// already enforced by default (SQLITE_DEFAULT_FOREIGN_KEYS=1). export const supportsTuningPragmas = false // Durable Object SQLite rejects `PRAGMA foreign_keys`: enforcement is always