Files
zero2prod/migrations/20251008112745_add_user_id_to_comments.sql
Alphonse Paix ef9f860da2
All checks were successful
Rust / Test (push) Successful in 6m17s
Rust / Rustfmt (push) Successful in 21s
Rust / Clippy (push) Successful in 1m37s
Rust / Code coverage (push) Successful in 5m5s
User comments
2025-10-08 14:23:43 +02:00

4 lines
92 B
SQL

ALTER TABLE comments
ADD COLUMN user_id UUID
REFERENCES users (user_id) ON DELETE SET NULL;