mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 04:14:39 +03:00
Add tags to studios (#4858)
* Fix makeTagFilter mode * Remove studio_tags filter criterion This is handled by studios_filter. The support for this still needs to be added in the UI, so I have removed the criterion options in the short-term. --------- Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
This commit is contained in:
9
pkg/sqlite/migrations/63_studio_tags.up.sql
Normal file
9
pkg/sqlite/migrations/63_studio_tags.up.sql
Normal file
@@ -0,0 +1,9 @@
|
||||
CREATE TABLE `studios_tags` (
|
||||
`studio_id` integer NOT NULL,
|
||||
`tag_id` integer NOT NULL,
|
||||
foreign key(`studio_id`) references `studios`(`id`) on delete CASCADE,
|
||||
foreign key(`tag_id`) references `tags`(`id`) on delete CASCADE,
|
||||
PRIMARY KEY(`studio_id`, `tag_id`)
|
||||
);
|
||||
|
||||
CREATE INDEX `index_studios_tags_on_tag_id` on `studios_tags` (`tag_id`);
|
||||
Reference in New Issue
Block a user