mirror of
https://github.com/friendica/friendica
synced 2024-11-09 15:42:55 +00:00
Changes:
- MySQL index on BLOB/TEXT can only be partial (e.g.: `column`(length))
This commit is contained in:
parent
5792a01a01
commit
5f6943b008
3 changed files with 7 additions and 7 deletions
|
@ -1234,7 +1234,7 @@ CREATE TABLE IF NOT EXISTS `post-media` (
|
|||
`publisher-name` varchar(255) COMMENT 'Name of the publisher of the media',
|
||||
`publisher-image` varbinary(255) COMMENT 'Image of the publisher of the media',
|
||||
PRIMARY KEY(`id`),
|
||||
UNIQUE INDEX `uri-id-url` (`uri-id`,`url`),
|
||||
UNIQUE INDEX `uri-id-url` (`uri-id`,`url`(512)),
|
||||
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';
|
||||
|
|
|
@ -32,9 +32,9 @@ Indexes
|
|||
------------
|
||||
|
||||
| Name | Fields |
|
||||
| ---------- | ------------------- |
|
||||
| ---------- | ------------------------ |
|
||||
| PRIMARY | id |
|
||||
| uri-id-url | UNIQUE, uri-id, url |
|
||||
| uri-id-url | UNIQUE, uri-id, url(512) |
|
||||
| uri-id-id | uri-id, id |
|
||||
|
||||
Foreign Keys
|
||||
|
|
|
@ -1272,7 +1272,7 @@ return [
|
|||
],
|
||||
"indexes" => [
|
||||
"PRIMARY" => ["id"],
|
||||
"uri-id-url" => ["UNIQUE", "uri-id", "url"],
|
||||
"uri-id-url" => ["UNIQUE", "uri-id", "url(512)"],
|
||||
"uri-id-id" => ["uri-id", "id"],
|
||||
]
|
||||
],
|
||||
|
|
Loading…
Reference in a new issue