workers-sdk icon indicating copy to clipboard operation
workers-sdk copied to clipboard

🚀 Feature Request: Enable foreign key support on local D1 database to align with remote D1 databases

Open mw10013 opened this issue 1 year ago • 0 comments

Describe the solution

It seems that remote D1 databases have foreign key support enabled by default on creation. As an aside, it seems it can't be turned off.

Screenshot 2024-02-25 at 12 43 51 PM

Wrangler seems to create a local D1 database with foreign key support off.

Screenshot 2024-02-25 at 12 46 47 PM

Ask that wrangler create local D1 databases with foreign key support enabled to align with remote D1 databases.

mw10013 avatar Feb 25 '24 17:02 mw10013