mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
* Refactor getMultiCriterionClause Co-authored-by: Anon247 <61889302+Anon247@users.noreply.github.com>
3 lines
207 B
SQL
3 lines
207 B
SQL
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); |