Skip to content

Commit 67f2b71

Browse files
clear schema cache when updating schema
1 parent 7124713 commit 67f2b71

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/PowerSyncGRDB/Connections/GRDBConnectionPool.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ actor GRDBConnectionPool: SQLiteConnectionPoolProtocol {
8888
try await pool.writeWithoutTransaction { database in
8989
let lease = try GRDBConnectionLease(database: database)
9090
try onConnection(lease, [])
91+
database.clearSchemaCache()
9192
}
9293
pool.invalidateReadOnlyConnections()
9394
}

0 commit comments

Comments
 (0)