From c2e9b8080b973a8b6d26fa22c8e7c70519fa32a3 Mon Sep 17 00:00:00 2001 From: DukePyrolator Date: Fri, 20 Dec 2013 07:34:49 +0100 Subject: Revert "m_chanstats: changed the default value of some fields to NULL instead of ''" This reverts commit 6ff83c3407cccd393c0d6f620986ed5a3953eb95. --- modules/stats/m_chanstats.cpp | 4 ++-- 1 file 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'," -- cgit