[DB] Fix Doctrine errors due to lack of column uniqueness

So, Doctrine doesn't like that `GSActorTag.tag` is not unique, even
though composite key `[tagger, tag]` is. `tag` can't unique, but
doctrine doesn't understand this. This seems like a Doctrine bug that
should be investigated. For now we'll just not mark it as a foreign
key
This commit is contained in:
2021-03-25 22:20:28 +00:00
parent 2e490756b9
commit 2174f288d1
3 changed files with 11 additions and 6 deletions

View File

@@ -296,7 +296,10 @@ class GSActor extends Entity
'modified' => ['type' => 'timestamp', 'not null' => true, 'default' => 'CURRENT_TIMESTAMP', 'description' => 'date this record was modified'],
],
'primary key' => ['id'],
'indexes' => [
'unique keys' => [
'gsactor_nickname_uniq' => ['nickname'],
],
'indexes' => [
'gsactor_nickname_idx' => ['nickname'],
],
'fulltext indexes' => [