running into issue with deployments of durable objects, we setup 2 envs with diff wrangler files (`w

running into issue with deployments of durable objects, we setup 2 envs with diff wrangler files (wrangler.{env).json) both deployed fine in CI (worker+a few durable objects)

after initiating a second deploy though im getting this:
Cannot apply new-sqlite-class migration to class 'MyObject' that is already depended on by existing Durable Objects [code: 10074]


I had a look through this discord and it seems like this issue was mentioned a couple times with same error code but couldnt see a clear answer on resolving it from prev messages on my search

would be great to get some guidance here, snippet of wrangler is below:

/**
 * For more details on how to configure Wrangler, refer to:
 * https://developers.cloudflare.com/workers/wrangler/configuration/
 */
{
    "$schema": "node_modules/wrangler/config-schema.json",
    "name": "my-app",
    "main": "src/index.ts",
    "compatibility_date": "2025-02-24",
    "compatibility_flags": [
        "nodejs_compat"
    ],
    "observability": {
        "enabled": true
    },
    "durable_objects": {
        "bindings": [
      {
              "name": "Brain",
                "class_name": "Brain"
            },
      {
              "name": "Chat",
                "class_name": "Chat"
            },        
    ]
    },
    "migrations": [
    {
            "tag": "v1",
            "new_sqlite_classes": [
                "Brain"
            ]
        },
    {
            "tag": "v1",
            "new_sqlite_classes": [
                "Chat"
            ]
        }
}


Thanks for any help šŸ™‚
Was this page helpful?