mirror of
https://github.com/friendica/friendica
synced 2025-04-27 15:10:11 +00:00
New index
This commit is contained in:
parent
4d359b7de1
commit
2a4b5b4cb4
3 changed files with 3 additions and 0 deletions
|
@ -1191,6 +1191,7 @@ CREATE TABLE IF NOT EXISTS `post-media` (
|
|||
`publisher-image` varbinary(255) COMMENT 'Image of the publisher of the media',
|
||||
PRIMARY KEY(`id`),
|
||||
UNIQUE INDEX `uri-id-url` (`uri-id`,`url`),
|
||||
INDEX `uri-id-id` (`uri-id`,`id`),
|
||||
FOREIGN KEY (`uri-id`) REFERENCES `item-uri` (`id`) ON UPDATE RESTRICT ON DELETE CASCADE
|
||||
) DEFAULT COLLATE utf8mb4_general_ci COMMENT='Attached media';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue