i've run into problems with drizzle and d1 too, it looks like they haven't run through all the edge
i've run into problems with drizzle and d1 too, it looks like they haven't run through all the edge cases
INSERT INTO users (sid) VALUES (?)).bind(sid),
UPDATE users
SET number_of_books = number_of_books + 1
WHERE sid = ?
AND changes() = 1
).bind(sid)Download Database Scheme for D1 databases? why it's very important because database scheme may change in dashboard that makes some difference from original scheme that been deployed via wrangler. if there be an option to download current database scheme, then before deploying new original scheme for D1 databases we can check if there is any changes that hasn't been considered in original (local) databases scheme or not. Thank You you are the best. sqlite_master maybe I don't remember.CURRENT_TIMESTAMP?

INSERT INTO users (sid) VALUES (?)
UPDATE users
SET number_of_books = number_of_books + 1
WHERE sid = ?
AND changes() = 1
Download Database Schemesqlite_masterCURRENT_TIMESTAMPD1_ERROR: internal error; reference = ndpgcatuhsqmvt3vuskhertr Error: D1_ERROR: internal error; reference = ndpgcatuhsqmvt3vuskhertr at D1DatabaseSessionAlwaysPrimary._sendOrThrow (cloudflare-internal:d1-api:125:19) at async D1PreparedStatement.first (cloudflare-internal:d1-api:287:35)