So,
I needed a settings table to manage some parts of my web app.
I came up with this:
CREATE TABLE `settings` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`key` char(55) NOT NULL DEFAULT '',
`value` longtext NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `key` (`key`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8;
I was wondering if it would be beneficial, to divide settings into int and text containign ones. So I would have everything but words_stop etc in another table.
What do you think? is it beneficial? or I can just stick to longtext and have everything in the same table?