Feature: Support Multiple URLs in Studios (#6223)

* Backend support for studio URLs
* FrontEnd addition
* Support URLs in BulkStudioUpdate
* Update tagger modal for URLs
---------
Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
This commit is contained in:
Gykes
2025-11-09 19:34:21 -08:00
committed by GitHub
parent 12a9a0b5f6
commit f434c1f529
33 changed files with 451 additions and 69 deletions

View File

@@ -0,0 +1,24 @@
CREATE TABLE `studio_urls` (
`studio_id` integer NOT NULL,
`position` integer NOT NULL,
`url` varchar(255) NOT NULL,
foreign key(`studio_id`) references `studios`(`id`) on delete CASCADE,
PRIMARY KEY(`studio_id`, `position`, `url`)
);
CREATE INDEX `studio_urls_url` on `studio_urls` (`url`);
INSERT INTO `studio_urls`
(
`studio_id`,
`position`,
`url`
)
SELECT
`id`,
'0',
`url`
FROM `studios`
WHERE `studios`.`url` IS NOT NULL AND `studios`.`url` != '';
ALTER TABLE `studios` DROP COLUMN `url`;