2
It seems simple this question, but wanted to know how to set a pattern. Usually using the Mysql Workbench a default is set automatically, as in the example below:
fk_tabela1_tabela2_idx
Note: I am using Laravel that has nomenclature patterns for tables, but I could not find anything about indexes.
If you’re willing to do it on
Laravel
in themigration
?– novic
I work directly in the database, I’m not using Migration in that project in question.
– Carlos Pereira
Carlos at Workbench I can write one for indices fields! he has this feature.
– novic
Do you use any convention to define your indices?
– Carlos Pereira
I usually put for indices the way you did in the description of the question, but there is no pattern to follow and if there is I really do not know. Maybe you have someone from DBA to say something.
– novic