1
0
mirror of https://github.com/anope/anope.git synced 2026-07-03 10:53:12 +02:00

Evidently not specifying NOT NULL is not enough to allow null timestamps

This commit is contained in:
Adam
2012-12-30 10:30:29 -05:00
parent 326f1a9c8b
commit bf718e8698
+1 -1
View File
@@ -372,7 +372,7 @@ std::vector<Query> MySQLService::CreateTable(const Anope::string &table, const D
if (known_cols.empty())
{
Anope::string query_text = "CREATE TABLE `" + table + "` (`id` int(10) unsigned NOT NULL AUTO_INCREMENT,"
" `timestamp` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP";
" `timestamp` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP";
for (Data::Map::const_iterator it = data.data.begin(), it_end = data.data.end(); it != it_end; ++it)
{
known_cols.insert(it->first);