summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDukePyrolator <DukePyrolator@anope.org>2013-12-15 16:24:22 +0100
committerDukePyrolator <DukePyrolator@anope.org>2013-12-15 16:24:22 +0100
commit6ff83c3407cccd393c0d6f620986ed5a3953eb95 (patch)
tree0516f73dbccdd7ae478c607ed6d127f8c89cb6fd /modules
parentadbc5a0e65ab650b2cd50f518cf9c727ec5fa7b4 (diff)
m_chanstats: changed the default value of some fields to NULL instead of ''
Diffstat (limited to 'modules')
-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 ab67e311b..54bf69299 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) NOT NULL DEFAULT '',"
- "`nick` varchar(255) NOT NULL DEFAULT '',"
+ "`chan` varchar(255) DEFAULT NULL,"
+ "`nick` varchar(255) DEFAULT NULL,"
"`type` ENUM('total', 'monthly', 'weekly', 'daily') NOT NULL,"
"`letters` int(10) unsigned NOT NULL DEFAULT '0',"
"`words` int(10) unsigned NOT NULL DEFAULT '0',"