cloudflare / cloudflare/developer-platform
🐛 BUG: PRAGMA foreign_key_check; should be allowed for Cloudflare D1 remote and local
- 主要言語
- 言語のデータがありません
- スター
- 1
- フォーク
- 0
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
### 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

コントリビューションガイド
調査の方向性
SQL マイグレーションに `PRAGMA foreign_key_check;` を追加し、ローカルとリモートの両方の D1 に対して実行して、失敗を再現します。PRAGMA ステートメントに対するマイグレーションの認可処理を追跡します。両方の環境で「not authorised」エラーが発生せずにマイグレーションが正常に実行されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- sql
- 領域
- databases
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100