diff --git a/migrations/20210329215000_create_image_backlog.sql b/migrations/20210329215000_create_image_backlog.sql index 3c7e2c1..9d37c23 100644 --- a/migrations/20210329215000_create_image_backlog.sql +++ b/migrations/20210329215000_create_image_backlog.sql @@ -6,7 +6,9 @@ CREATE TABLE image_backlog ( thumbnail_url TEXT NOT NULL, filename TEXT NOT NULL, thumbnail_filename TEXT NOT NULL, + page INTEGER NOT NULL, file_sha256 TEXT NOT NULL, thumbnail_sha256 TEXT NOT NULL, UNIQUE(board, no) -); \ No newline at end of file +); +CREATE INDEX page_index ON posts (page); \ No newline at end of file