7 lines
200 B
Plaintext
7 lines
200 B
Plaintext
|
add_column("orders", "customer_id", "integer", {"unsigned":true})
|
||
|
|
||
|
add_foreign_key("orders", "customer_id", {"customers": ["id"]}, {
|
||
|
"on_delete": "cascade",
|
||
|
"on_update": "cascade",
|
||
|
})
|