mirror of
https://github.com/friendica/friendica
synced 2025-04-26 01:10:15 +00:00
New foreign key for the "photo" table
This commit is contained in:
parent
61a2b225bb
commit
cbdaf6298a
3 changed files with 12 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
|||
-- ------------------------------------------
|
||||
-- Friendica 2020.09-dev (Red Hot Poker)
|
||||
-- DB_UPDATE_VERSION 1362
|
||||
-- DB_UPDATE_VERSION 1363
|
||||
-- ------------------------------------------
|
||||
|
||||
|
||||
|
@ -922,7 +922,8 @@ CREATE TABLE IF NOT EXISTS `photo` (
|
|||
INDEX `uid_profile` (`uid`,`profile`),
|
||||
INDEX `uid_album_scale_created` (`uid`,`album`(32),`scale`,`created`),
|
||||
INDEX `uid_album_resource-id_created` (`uid`,`album`(32),`resource-id`,`created`),
|
||||
INDEX `resource-id` (`resource-id`)
|
||||
INDEX `resource-id` (`resource-id`),
|
||||
FOREIGN KEY (`contact-id`) REFERENCES `contact` (`id`) ON UPDATE RESTRICT ON DELETE RESTRICT
|
||||
) DEFAULT COLLATE utf8mb4_general_ci COMMENT='photo storage';
|
||||
|
||||
--
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue