I did attempt to run ths same script against my development database, and wittnessed the same error
I did attempt to run ths same script against my development database, and wittnessed the same error I'm getting locally.
execute DB_NAME --file=export.sql to import your old database.d1 release of the wrangler branch as it hasn't been merged into a release yet. If you do npx wrangler@d1 d1 time-travel info <db> then I believe it should workwrangler@d1 branch. It definitely works. I am using the same public version as everyone else. But also note that this isn’t final - I’d suggest holding off until we officially release it if you rely on your database.vite dev and the best I could find is re-running the production build. https://discord.com/channels/595317990191398933/1042974692186804295/1048148731670835290platform parameter needs to be able to receive the D1 client library when developing locally: https://github.com/sveltejs/kit/issues/4292--d1 flag to set up the database binding locally, but I assume that's for the wrangler CLI and not Vite.platform object and the APIs they need.DEFAULT constraint? wrangler.toml that work in production:c.req.url) I correctly get https://foo.com/login when it's deployed to Cloudflare.wrangler dev , I get http://send/login 
ON DUPLICATE KEY isn’t supported by D1’s query engine (SQLite) - use UPSERT or INSERT OR IGNORE instead: https://stackoverflow.com/a/4330694/556573ALTER TABLE likely to also cause requests to be held while it applies?execute DB_NAME --file=export.sqlnpx wrangler@d1 d1 time-travel info <db>wrangler@d1vite devplatformplatform--d1DEFAULTDROP COLUMNc.req.urlhttps://foo.com/loginwrangler devhttp://send/loginON DUPLICATE KEYUPSERTINSERT OR IGNOREALTER TABLEroutes = [
{ pattern = "*/send", zone_id = "[id]" },
{ pattern = "*/login", zone_id = "[id]" },
{ pattern = "*/services", zone_id = "[id]" },
]