Deleting table with 'Links' [May 26] #2246
dstala
started this conversation in
Discord Threads
Replies: 1 comment
-
You will be required to delete 'Link to another record' column (relational column) before deleting the table.
I want to delete the table's rows (empty it from data), not delete all the table. Maybe I'm using the wrong endpoint?
you would have to delete the related rows to begin with then delete these rows
or you would have to set cascade on delete option while creating link to another record
I re-create with cascade but it's until not working. I also tried to delete all the rows in all the tables in case because it created and related to the table before it will make me problem, but until the same error...
Any suggestions? 🙏
I'm still looking for solution 🙏Can it be bug or It something I'm doing worng?
<@396976051172933635>, share your project information please (
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to empty table with rest api. But it seems like because it have relation column to other table I can't(?).
api end-point:
https://site/api/v1/db/data/bulk/noco/barks/games_log/allrequest body:
```JSON
{
"שם המשחק": "null",
"שם הנער": "null",
"פיקדון": "null",
"נלקח בשעה": "null",
"הוחזר בשעה": "null"
}
```
(all the columns)
response:
```JSON
{
"msg": "delete from "nc_ry8c__games" - update or delete on table "nc_ry8c__games" violates foreign key constraint "nc_ry8c__teen_nc_ry8c__games_id_foreign" on table "nc_ry8c__teen""
}
```
(code 400 Error: Bad Request)
What can I do for successfully empty the table? This is the last thing to do before I'm finishing my system🙏
Beta Was this translation helpful? Give feedback.
All reactions