mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
Parent studios (#595)
* Refactor getMultiCriterionClause Co-authored-by: Anon247 <61889302+Anon247@users.noreply.github.com>
This commit is contained in:
3
pkg/database/migrations/9_studios_parent_studio.up.sql
Normal file
3
pkg/database/migrations/9_studios_parent_studio.up.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
ALTER TABLE studios
|
||||
ADD COLUMN parent_id INTEGER DEFAULT NULL CHECK ( id IS NOT parent_id ) REFERENCES studios(id) on delete set null;
|
||||
CREATE INDEX index_studios_on_parent_id on studios (parent_id);
|
||||
Reference in New Issue
Block a user