mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
Add Chapters for Galleries (#3289)
Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
This commit is contained in:
10
pkg/sqlite/migrations/44_gallery_chapters.up.sql
Normal file
10
pkg/sqlite/migrations/44_gallery_chapters.up.sql
Normal file
@@ -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