Update DB dump

This commit is contained in:
rem-pai 2021-01-31 00:44:57 +02:00 committed by GitHub
parent 944d68494f
commit 19000c2f03
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,8 +23,8 @@ CREATE TABLE `albums` (
CREATE TABLE `album_relations` (
`album` bigint(20) UNSIGNED NOT NULL,
`photo` bigint(20) UNSIGNED NOT NULL,
`collection` bigint(20) UNSIGNED NOT NULL,
`media` bigint(20) UNSIGNED NOT NULL,
`index` bigint(20) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_nopad_ci;
@ -496,6 +496,10 @@ ALTER TABLE `videos`
ALTER TABLE `albums`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
ALTER TABLE `album_relations`
ADD PRIMARY KEY (`index`),
ADD KEY `album` (`collection`);
ALTER TABLE `album_relations`
MODIFY `index` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;