`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';
Indexes
------------
-| Name | Fields |
-| ---------- | ------------------- |
-| PRIMARY | id |
-| uri-id-url | UNIQUE, uri-id, url |
-| uri-id-id | uri-id, id |
+| Name | Fields |
+| ---------- | ------------------------ |
+| PRIMARY | id |
+| uri-id-url | UNIQUE, uri-id, url(512) |
+| uri-id-id | uri-id, id |
Foreign Keys
------------
],
"indexes" => [
"PRIMARY" => ["id"],
- "uri-id-url" => ["UNIQUE", "uri-id", "url"],
+ "uri-id-url" => ["UNIQUE", "uri-id", "url(512)"],
"uri-id-id" => ["uri-id", "id"],
]
],