Hey Guys i have a db and corresponding

Hey Guys, i have a db and corresponding preview, but now i can't apply mirgations since it returns an error

✘ [ERROR] Can't find a DB with name/binding 'preview-mydb' in local config. Check info in wrangler.toml...


but i have a definition like so

[[d1_databases]]
binding = "DB"
database_name = "mydb"
database_id = "main-id"
preview_database_id = "preview-id"
Was this page helpful?