See this miniflare issue for more details.
I got this issue running my tests that used miniflare:
Error: SQL is not enabled for this Durable Object class. To enable it, change `new_classes` to `
new_sqlite_classes` within the 'migrations' field in your wrangler.jsonc or wrangler.toml file. If using workerd directly,set `enableSql = true` in your workerd config for the class. Note that this change cannot be made after the class is already deployed to production.
(coming from this workerd code)
I was not using wokerd directly, I was using new_sqlite_classes, and it was not for a class that had already been deployed.
Ultimately i had to pass useSQLite: true (note this is not enableSql=true) into miniflare (the isssue linked above describes the solution more).
Improving this error message will hopefully save futures users a lot of headaches!
Thank you,
Blake