mirror of
https://github.com/stashapp/stash.git
synced 2026-05-08 01:29:46 -05:00
Add Chapters for Galleries (#3289)
Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
CREATE TABLE `galleries_chapters` (
|
||||
`id` integer not null primary key autoincrement,
|
||||
`title` varchar(255) not null,
|
||||
`image_index` integer not null,
|
||||
`gallery_id` integer not null,
|
||||
`created_at` datetime not null,
|
||||
`updated_at` datetime not null,
|
||||
foreign key(`gallery_id`) references `galleries`(`id`) on delete CASCADE
|
||||
);
|
||||
CREATE INDEX `index_galleries_chapters_on_gallery_id` on `galleries_chapters` (`gallery_id`);
|
||||
Reference in New Issue
Block a user