forked from didirus/AstralRinth
* Decouple project deletion from thread deletion * Allow a thread to exist without a project * attempt 2 * Modify migration to set orphaned threads' mods to NULL instead of removing constraint entirely * Use mod PAT for mod threads
6 lines
153 B
SQL
6 lines
153 B
SQL
ALTER TABLE threads
|
|
DROP CONSTRAINT threads_mod_id_fkey,
|
|
ADD CONSTRAINT threads_mod_id_fkey
|
|
FOREIGN KEY (mod_id) REFERENCES mods(id)
|
|
ON DELETE SET NULL;
|