Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Naming conventions for DB triggers

Are there any naming conventions for DB triggers?

For example "before delete on users" would be "bdUsers" or something like that.

like image 341
Jakub Arnold Avatar asked Jun 01 '09 20:06

Jakub Arnold


1 Answers

For sorting reasons I would recommend a structured approach:

TR_Users_AD TR_Users_BD TR_OtherTable_AI 

and so on.

In the end it's up to you - but whatever you choose to do, stay consistent, at least within the same database.

like image 63
Tomalak Avatar answered Oct 05 '22 18:10

Tomalak