I have two tables for multilingual articles. In first table I have no text columns (id,authorid, date etc). In the second table I have text columns (titles,content etc).
For every row in first table I can have many rows in the second table. For example for article that is translated into three languages I have three rows in table 2.
In table 2 column(id) has foreign key to table 1, that's why it's already indexed. I can't set column id for table 2 unique as it's clear it's not unique. However, I can't edit data from table 2 in workbench as it says - no primary key or non-null unique key.
What I say in scheme:
Table1{
id
date
authorId
}
Table2{
id
title
content
languageId
}
So the answer - if I create primary key for column (id) in table 2 - will mysql create one more index for this column?