MyBB Community Forums

Full Version: in response to this support issue
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
http://community.mybboard.net/showthread.php?tid=22151


why not for MyBB 1.4.0 add a tool that looks for duplicate settings and removes them
This is a good idea but it could be done with a simple plugin. I might try and make it later.
It would be a useless feature as 99% of people don't have that problem
It might be useless but it's a good fail safe for MyBB. Where if some of the default settings are missing or there is two of them all MyBB can make the admin aware.
A better solution would be to design the database schema so that it would be impossible to have duplicates.
Well it's not that database that would have to keep track of them it would more the PHP code that would have to check for duplicates.
laie_techie Wrote:A better solution would be to design the database schema so that it would be impossible to have duplicates.

And how would you do that? MySQL doesn't have any sort of feasible duplicate checking property
You can add unique keys on tables.
laie_techie Wrote:You can add unique keys on tables.

I'm pretty sure that would just throw errors for anything that's inserted twice.