cloudflare / cloudflare/developer-platform

🐛 BUG: PRAGMA foreign_key_check; should be allowed for Cloudflare D1 remote and local

Đang mở
#40 0 bình luận 3 reaction 0 người được giao Xem trên GitHub
product:d1
Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
1
Fork
0
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### Which Cloudflare product(s) does this pertain to?

D1

### What version(s) of the tool(s) are you using?

3.49.0 [Wrangler]

### What version of Node are you using?

20.11.0

### What operating system and version are you using?

Mac Sonoma 14.1.1

### Describe the Bug

### Observed behavior
Received a "not authorised" message and migration fails when running a sql file with the following line:
`PRAGMA foreign_key_check;`

### Expected behavior
One should be authorised to be able to run a foreign_key_check

### Steps to reproduce
Just add the above line to an sql file and run a migration either local or remote on a D1 database

### Please provide a link to a minimal reproduction

_No response_

### Please provide any relevant error logs

This is all I see when I receive the error
![image](https://github.com/cloudflare/cf-platform-issues/assets/14161564/00a09402-2670-4516-9923-422c9f6ae297)

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Tái hiện lỗi bằng cách thêm `PRAGMA foreign_key_check;` vào một migration SQL và chạy nó trên cả D1 cục bộ lẫn D1 từ xa. Theo dõi việc xử lý ủy quyền migration đối với các câu lệnh PRAGMA; được xem là hoàn thành khi migration chạy thành công trong cả hai môi trường mà không có lỗi “not authorised”.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
sql
Lĩnh vực
databases
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
45/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.