translations.txt: translation should not be a primary key#326
translations.txt: translation should not be a primary key#326sccmcca merged 1 commit intogoogle:masterfrom
Conversation
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). For more information, open the CLA check for this pull request. |
|
Would my solution to #327 negate the need for this change? |
|
@westontrillium IMHO, no, the issue would remain. |
|
It looks like the proposal does not raise any other concerns. I’m opening a vote on this PR.
NB: The vote is also open on PR#327 which fixes another issue in translations.txt. |
|
+1 OpenGeo, thanks for the fix. |
|
+1 Transit |
|
+1 Brody Flannigan Transit Data |
|
+1 Metro Transit |
|
+1 Moovit |
|
The voting period has ended. With 5 votes in favor and no votes against, this proposal is adopted. |
Current issue
The primary key for translations.txt is
*, meaning all fields are part of the primary key. However, this allows two identical records to be translated in different ways for one language, with no reasoning behind which translation should take precedence. It seems that this is in fact an error, and that the translation field should not be part of the primary key of the table. Example:routes.txt
translations.txt
Solution in this PR
The fields (
table_name,field_name,language,record_id,record_sub_id,field_value) are the primary keys of translations.txt.