/* 83689a3 */
ALTER TABLE wcf1_user_group_option DROP COLUMN adminDefaultValue;
+
+/* a16ee11 */
+DROP TABLE wcf1_user_activity_point_event;
+ALTER TABLE wcf1_user_activity_point ADD items INT(10) NOT NULL DEFAULT '0';
\ No newline at end of file
--- /dev/null
+<?php
+use wcf\data\object\type\ObjectTypeCache;
+use wcf\system\WCF;
+
+$sql = "UPDATE wcf".WCF_N."_user_activity_point
+ SET items = FLOOR(activityPoints / ?)
+ WHERE objectTypeID = ?";
+$statement = WCF::getDB()->prepareStatement($sql);
+
+foreach (ObjectTypeCache::getInstance()->getObjectTypes('com.woltlab.wcf.user.activityPointEvent') as $objectType) {
+ // prevent division by zero
+ if (!$objectType->points) {
+ continue;
+ }
+
+ $statement->execute(array(
+ $objectType->points,
+ $objectType->objectTypeID
+ ));
+}