summaryrefslogtreecommitdiff
path: root/modules/stats
diff options
context:
space:
mode:
Diffstat (limited to 'modules/stats')
-rw-r--r--modules/stats/m_chanstats.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/stats/m_chanstats.cpp b/modules/stats/m_chanstats.cpp
index 54bf69299..ab67e311b 100644
--- a/modules/stats/m_chanstats.cpp
+++ b/modules/stats/m_chanstats.cpp
@@ -259,8 +259,8 @@ class MChanstats : public Module
{
query = "CREATE TABLE `" + prefix + "chanstats` ("
"`id` int(11) NOT NULL AUTO_INCREMENT,"
- "`chan` varchar(255) DEFAULT NULL,"
- "`nick` varchar(255) DEFAULT NULL,"
+ "`chan` varchar(255) NOT NULL DEFAULT '',"
+ "`nick` varchar(255) NOT NULL DEFAULT '',"
"`type` ENUM('total', 'monthly', 'weekly', 'daily') NOT NULL,"
"`letters` int(10) unsigned NOT NULL DEFAULT '0',"
"`words` int(10) unsigned NOT NULL DEFAULT '0',"