cloudflare / cloudflare/developer-platform
🐛 BUG: PRAGMA foreign_key_check; should be allowed for Cloudflare D1 remote and local
- Langage dominant
- Aucune donnée de langage
- Étoiles
- 1
- Forks
- 0
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
### 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

Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Reproduisez l’échec en ajoutant `PRAGMA foreign_key_check;` à une migration SQL et en l’exécutant à la fois contre D1 local et D1 distant. Suivez la gestion de l’autorisation de la migration pour les instructions PRAGMA ; la tâche est terminée lorsque la migration s’exécute correctement dans les deux environnements sans l’erreur « not authorised ».
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- sql
- Domaine
- databases
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 45/100