|
|
|
|
|
by 6nf
2593 days ago
|
|
Yea the 'correct' approach is often to to both: - You check for consistency issues on the client-side UI level, and give the user instant feedback when something is not right. - You also create a db trigger to enforce the rule in the database itself. This way you, as a developer, can write your code with the assumption that the data is gonna be consistent when it comes from the database, even if something went wrong on the client UI level at some point. |
|