[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.
This commit is contained in:
Alexei Sorokin 2019-11-02 14:32:48 +03:00
parent 9124617055
commit 52800c3a65
2 changed files with 0 additions and 2 deletions

View File

@ -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')),

View File

@ -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'),