I had a project that was using the DO KV API. But I want to use the the new SQL API. Running my t
I had a project that was using the DO KV API. But I want to use the the new SQL API.
Running my tests with vitestI got an error like:
"SQL is not enabled for this Durable Object class. To enable it, change
.jsonc or wrangler.toml file. If using workerd directly,set
So to work around this I renamed my classes and changed all the corresponding names. As well as the "name" in the wrangler.toml but when I tried to run the tests again I get the same error. What do I have to change to make a "new" deployment?
Running my tests with vitestI got an error like:
"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" So to work around this I renamed my classes and changed all the corresponding names. As well as the "name" in the wrangler.toml but when I tried to run the tests again I get the same error. What do I have to change to make a "new" deployment?