cloudflare / cloudflare/developer-platform

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

Aperta
#40 0 commenti 3 reazioni 0 assegnatari Vedi su GitHub
product:d1
Lingua principale
Nessun dato sulla lingua
Stelle
1
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

### 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)

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Riproduci il problema aggiungendo `PRAGMA foreign_key_check;` a una migrazione SQL ed eseguendola sia su D1 locale sia su D1 remoto. Traccia la gestione dell’autorizzazione della migrazione per le istruzioni PRAGMA; il lavoro è completato quando la migrazione viene eseguita correttamente in entrambi gli ambienti senza l’errore “not authorised”.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
sql
Ambito
databases
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.