mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-25 00:11:14 -05:00
Fix blog post foreign key
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
-- Fix blog_posts foreign key to reference profiles
|
||||
ALTER TABLE blog_posts DROP CONSTRAINT IF EXISTS blog_posts_author_id_fkey;
|
||||
ALTER TABLE blog_posts ADD CONSTRAINT blog_posts_author_id_fkey
|
||||
FOREIGN KEY (author_id) REFERENCES profiles(user_id) ON DELETE CASCADE;
|
||||
Reference in New Issue
Block a user