JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
don't be stingy with mutex.name field length
authorJason Woofenden <jason@jasonwoof.com>
Tue, 3 Jul 2018 00:46:24 +0000 (20:46 -0400)
committerJason Woofenden <jason@jasonwoof.com>
Tue, 3 Jul 2018 00:46:24 +0000 (20:46 -0400)
db.php

diff --git a/db.php b/db.php
index fcf5328..2dccfbc 100644 (file)
--- a/db.php
+++ b/db.php
@@ -591,7 +591,7 @@ function db_upgrade() {
        }
 
        if ($version === -1) {
-               db_send_query('create table if not exists wfpl_mutexes (id int unique auto_increment, name varchar(30) binary, expires int(11)) CHARSET=utf8;');
+               db_send_query('create table if not exists wfpl_mutexes (id int unique auto_increment, name varchar(255) binary, expires int(11)) CHARSET=utf8;');
                $version = 0;
                # don't save version now in case another thread is doing this too
        }