From 52800c3a659b0925a6d0517a546b6b0d40af4bf1 Mon Sep 17 00:00:00 2001 From: Alexei Sorokin Date: Sat, 2 Nov 2019 14:32:48 +0300 Subject: [PATCH] [DATABASE] Remove profile_tag_tag_fkey profile_list.tag is not supposed to be unique, this also reverts the addition of profile_list_tag_key. --- classes/Profile_list.php | 1 - classes/Profile_tag.php | 1 - 2 files changed, 2 deletions(-) diff --git a/classes/Profile_list.php b/classes/Profile_list.php index 4e8b231e19..6e2eaf38d3 100644 --- a/classes/Profile_list.php +++ b/classes/Profile_list.php @@ -60,7 +60,6 @@ class Profile_list extends Managed_DataObject 'primary key' => array('tagger', 'tag'), 'unique keys' => array( 'profile_list_id_key' => array('id'), - 'profile_list_tag_key' => array('tag'), ), 'foreign keys' => array( 'profile_list_tagger_fkey' => array('profile', array('tagger' => 'id')), diff --git a/classes/Profile_tag.php b/classes/Profile_tag.php index 02fae227a4..18018664bb 100644 --- a/classes/Profile_tag.php +++ b/classes/Profile_tag.php @@ -41,7 +41,6 @@ class Profile_tag extends Managed_DataObject 'foreign keys' => array( 'profile_tag_tagger_fkey' => array('profile', array('tagger' => 'id')), 'profile_tag_tagged_fkey' => array('profile', array('tagged' => 'id')), - 'profile_tag_tag_fkey' => array('profile_list', array('tag' => 'tag')), ), 'indexes' => array( 'profile_tag_modified_idx' => array('modified'),