udemy-go-web-2/migrations/20240807135724_add_customer_id_to_orders.up.fizz
2024-08-07 16:22:52 +02:00

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",
})