Add missing NOT NULL for wcf1_user_profile_visitor columns
authorMatthias Schmidt <gravatronics@live.com>
Sat, 7 May 2016 11:14:59 +0000 (13:14 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sat, 7 May 2016 11:14:59 +0000 (13:14 +0200)
wcfsetup/setup/db/install.sql

index 4663990a54067ab470c147dd78dbe619d4af304e..3f1df99cfefb58ad779a9dfc37c15ff8724b250a 100644 (file)
@@ -1560,8 +1560,8 @@ CREATE TABLE wcf1_user_profile_menu_item (
 DROP TABLE IF EXISTS wcf1_user_profile_visitor;
 CREATE TABLE wcf1_user_profile_visitor (
        visitorID INT(10) NOT NULL AUTO_INCREMENT PRIMARY KEY,
-       ownerID INT(10),
-       userID INT(10),
+       ownerID INT(10) NOT NULL,
+       userID INT(10) NOT NULL,
        time INT(10) NOT NULL DEFAULT 0,
        UNIQUE KEY (ownerID, userID),
        KEY (time)