ALTER TABLE wcf1_moderation_queue DROP KEY affectedObject;
ALTER TABLE wcf1_moderation_queue ADD FOREIGN KEY (objectTypeID) REFERENCES wcf1_object_type (objectTypeID) ON DELETE CASCADE;
+/* change default value to '1' */
+ALTER TABLE wcf1_like CHANGE time time INT(10) NOT NULL DEFAULT 1;
+
ALTER TABLE wcf1_page_menu_item ADD originIsSystem TINYINT(1) NOT NULL DEFAULT 0;
/* truncate table to ensure consistency */
*/
INSERT INTO wcf1_bbcode_media_provider (title, regex, html) VALUES ('Soundcloud set', 'https?://soundcloud.com/(?P<artist>[a-zA-Z0-9_-]+)/sets/(?P<name>[a-zA-Z0-9_-]+)', '<iframe width="100%" height="450" scrolling="no" src="https://w.soundcloud.com/player/?url=http%3A%2F%2Fsoundcloud.com%2F{$artist}%2Fsets%2F{$name}"></iframe>');
+
+/*
+ * ########################
+ * ### MINOR UPDATES ######
+ * ########################
+ */
+
+/* change default value to '1' */
+UPDATE wcf1_like SET time = 1 WHERE time = 0;
\ No newline at end of file
if ($data['objectUserID']) $data['objectUserID'] = ImportHandler::getInstance()->getNewID('com.woltlab.wcf.user', $data['objectUserID']);
$data['userID'] = ImportHandler::getInstance()->getNewID('com.woltlab.wcf.user', $data['userID']);
if (!$data['userID']) return 0;
- if (empty($data['time'])) $data['time'] = 0;
+ if (empty($data['time'])) $data['time'] = 1;
$sql = "INSERT IGNORE INTO wcf".WCF_N."_like
(objectID, objectTypeID, objectUserID, userID, time, likeValue)
objectTypeID INT(10) NOT NULL,
objectUserID INT(10),
userID INT(10) NOT NULL,
- time INT(10) NOT NULL DEFAULT 0,
+ time INT(10) NOT NULL DEFAULT 1,
likeValue TINYINT(1) NOT NULL DEFAULT 1,
UNIQUE KEY (objectTypeID, objectID, userID)
);