stash/pkg/sqlite/migrations/79_scene_custom_fields.up.sql
WithoutPants e289199911
Scene custom field backend support (#6584)
* Add custom fields to scenes
* Generalise set custom fields tests to other object types
2026-02-18 16:50:32 +11:00

9 lines
No EOL
333 B
SQL

CREATE TABLE `scene_custom_fields` (
`scene_id` integer NOT NULL,
`field` varchar(64) NOT NULL,
`value` BLOB NOT NULL,
PRIMARY KEY (`scene_id`, `field`),
foreign key(`scene_id`) references `scenes`(`id`) on delete CASCADE
);
CREATE INDEX `index_scene_custom_fields_field_value` ON `scene_custom_fields` (`field`, `value`);