mirror of
https://github.com/stashapp/stash.git
synced 2026-05-09 05:05:29 +02:00
- Introduced `cover_image_source` field in the Scene type, SceneCreateInput, and SceneUpdateInput to track the origin of cover images. - Updated the GraphQL schema and corresponding resolver logic to handle the new field. - Implemented default cover image source logic in the resolver for scene creation and updates. - Added migration to include `cover_image_source` column in the scenes table. - Enhanced UI components to support the new cover image source functionality, including updates to SceneEditPanel and SceneDetails.
10 lines
384 B
SQL
10 lines
384 B
SQL
ALTER TABLE `scenes` ADD COLUMN `cover_image_source` text CHECK (
|
|
`cover_image_source` IS NULL
|
|
OR `cover_image_source` = 'default'
|
|
OR `cover_image_source` = 'clipboard'
|
|
OR `cover_image_source` = 'userscript'
|
|
OR `cover_image_source` LIKE 'url:%'
|
|
OR `cover_image_source` LIKE 'stash:%'
|
|
OR `cover_image_source` LIKE 'timestamp:%'
|
|
OR `cover_image_source` LIKE 'file:%'
|
|
);
|