Skip to content
Discussion options

You must be logged in to vote

on_delete only works for has-one relation and it is only used when creating table schema with CreateTable . Specifically it adds FOREIGN_KEY some_id ON DELETE CASCADE - https://www.postgresql.org/docs/13/sql-createtable.html

This is fixed in Bun by allowing to manually specify foreign keys - https://bun.uptrace.dev/guide/queries.html#creating-tables

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ghost
Comment options

@vmihailenco
Comment options

Answer selected by vmihailenco
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant