Replaces disabled and active with isDisabled
authorMatthias Schmidt <gravatronics@live.com>
Fri, 28 Dec 2012 18:01:33 +0000 (19:01 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Fri, 28 Dec 2012 18:01:33 +0000 (19:01 +0100)
`disabled` is renamed to `isDisabled` and cronjob's `active` is replaced with `isDisabled`.

Also adds missing `wcf\data\IToggleAction` to `wcf\data\language\server\LanguageServerAction`.

`wcf\system\style\handler\StyleHandler` still uses `disabled` as an array key at two points (cf. WoltLab/WCF#1031).

16 files changed:
XSD/cronjob.xsd
wcfsetup/install/files/acp/templates/cronjobList.tpl
wcfsetup/install/files/acp/templates/updateServerList.tpl
wcfsetup/install/files/lib/data/cronjob/CronjobAction.class.php
wcfsetup/install/files/lib/data/language/server/LanguageServerAction.class.php
wcfsetup/install/files/lib/data/package/update/server/PackageUpdateServer.class.php
wcfsetup/install/files/lib/data/package/update/server/PackageUpdateServerAction.class.php
wcfsetup/install/files/lib/data/style/StyleAction.class.php
wcfsetup/install/files/lib/data/style/StyleEditor.class.php
wcfsetup/install/files/lib/data/user/option/UserOptionEditor.class.php
wcfsetup/install/files/lib/system/cronjob/CronjobScheduler.class.php
wcfsetup/install/files/lib/system/option/user/UserOptionHandler.class.php
wcfsetup/install/files/lib/system/package/plugin/CronjobPackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/plugin/UserOptionPackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/style/StyleHandler.class.php
wcfsetup/setup/db/install.sql

index 7c319fef76cc58d6b08bf8bfccc6551b81af50f7..5088dd0e2e15eace63acc14209114d2548dc8a77 100644 (file)
@@ -41,7 +41,7 @@
                        <xs:element name="execmultiple" type="woltlab_boolean" minOccurs="0" default="0" />
                        <xs:element name="canbeedited" type="woltlab_boolean" minOccurs="0" default="1" />
                        <xs:element name="canbedisabled" type="woltlab_boolean" minOccurs="0" default="1" />
-                       <xs:element name="active" type="woltlab_boolean" minOccurs="0" default="1" />
+                       <xs:element name="isdisabled" type="woltlab_boolean" minOccurs="0" default="0" />
                </xs:all>
        </xs:complexType>
 </xs:schema>
\ No newline at end of file
index 35ad80c2180596fee6381e78e82349b1f3030e01..31e88f10814fb5856ff53d0bdacfc18cc54a134b 100644 (file)
@@ -75,9 +75,9 @@
                                                                <img src="{@$__wcf->getPath()}icon/play.svg" alt="" title="{lang}wcf.acp.cronjob.execute{/lang}" class="icon16 jsExecuteButton jsTooltip pointer" data-object-id="{@$cronjob->cronjobID}" />
                                                                
                                                                {if $cronjob->canBeDisabled()}
-                                                                       <img src="{@$__wcf->getPath()}icon/{if $cronjob->active}enabled{else}disabled{/if}.svg" alt="" title="{lang}wcf.global.button.{if $cronjob->active}disable{else}enable{/if}{/lang}" class="icon16 jsToggleButton jsTooltip pointer" data-object-id="{@$cronjob->cronjobID}" data-disable-message="{lang}wcf.global.button.disable{/lang}" data-enable-message="{lang}wcf.global.button.enable{/lang}" />
+                                                                       <img src="{@$__wcf->getPath()}icon/{if !$cronjob->isDisabled}enabled{else}disabled{/if}.svg" alt="" title="{lang}wcf.global.button.{if !$cronjob->isDisabled}disable{else}enable{/if}{/lang}" class="icon16 jsToggleButton jsTooltip pointer" data-object-id="{@$cronjob->cronjobID}" data-disable-message="{lang}wcf.global.button.disable{/lang}" data-enable-message="{lang}wcf.global.button.enable{/lang}" />
                                                                {else}
-                                                                       {if $cronjob->active}
+                                                                       {if !$cronjob->isDisabled}
                                                                                <img src="{@$__wcf->getPath()}icon/enabled.svg" alt="" title="{lang}wcf.global.button.disable{/lang}" class="icon16 disabled" />
                                                                        {else}
                                                                                <img src="{@$__wcf->getPath()}icon/disabled.svg" alt="" title="{lang}wcf.global.button.enable{/lang}" class="icon16 disabled" />
                                                                {/if}
                                                        </td>
                                                        <td class="columnDate columnNextExec">
-                                                               {if $cronjob->active && $cronjob->nextExec != 1}
+                                                               {if !$cronjob->isDisabled && $cronjob->nextExec != 1}
                                                                        <p>{@$cronjob->nextExec|plainTime}</p>
                                                                {/if}
                                                        </td>
index 24ed0f35e5b20d9d883ef3be2c105396f5e64c5c..a1c13113eee1a2bd89163c8467d67c57e9257f56 100644 (file)
                                        {foreach from=$objects item=updateServer}
                                                <tr class="jsUpdateServerRow">
                                                        <td class="columnIcon">
-                                                               <img src="{@$__wcf->getPath()}icon/{if !$updateServer->disabled}enabled{else}disabled{/if}.svg" alt="" title="{lang}wcf.global.button.{if !$updateServer->disabled}disable{else}enable{/if}{/lang}" class="icon16 jsToggleButton jsTooltip pointer" data-object-id="{@$updateServer->packageUpdateServerID}" data-disable-message="{lang}wcf.global.button.disable{/lang}" data-enable-message="{lang}wcf.global.button.enable{/lang}" />
+                                                               <img src="{@$__wcf->getPath()}icon/{if !$updateServer->isDisabled}enabled{else}disabled{/if}.svg" alt="" title="{lang}wcf.global.button.{if !$updateServer->isDisabled}disable{else}enable{/if}{/lang}" class="icon16 jsToggleButton jsTooltip pointer" data-object-id="{@$updateServer->packageUpdateServerID}" data-disable-message="{lang}wcf.global.button.disable{/lang}" data-enable-message="{lang}wcf.global.button.enable{/lang}" />
                                                                <a href="{link controller='UpdateServerEdit' id=$updateServer->packageUpdateServerID}{/link}"><img src="{@$__wcf->getPath()}icon/edit.svg" alt="" title="{lang}wcf.global.button.edit{/lang}" class="icon16 jsTooltip" /></a>
                                                                <img src="{@$__wcf->getPath()}icon/delete.svg" alt="" title="{lang}wcf.global.button.delete{/lang}" class="icon16 jsDeleteButton jsTooltip pointer" data-object-id="{@$updateServer->packageUpdateServerID}" data-confirm-message="{lang}wcf.acp.updateServer.delete.sure{/lang}" />
-                                                       
+                                                               
                                                                {event name='buttons'}
                                                        </td>
                                                        <td class="columnID"><p>{@$updateServer->packageUpdateServerID}</p></td>
@@ -68,7 +68,7 @@
                                                        <td class="columnStatus"><p class="badge{if $updateServer->status == 'online'} green{else} red{/if}">{@$updateServer->status}</p></td>
                                                        <td class="columnText"><p title="{@$updateServer->errorMessage}">{@$updateServer->errorMessage|truncate:"30"}</p></td>
                                                        <td class="columnDate"><p>{if $updateServer->lastUpdateTime}{@$updateServer->lastUpdateTime|time}{/if}</p></td>
-                                               
+                                                       
                                                        {event name='columns'}
                                                </tr>
                                        {/foreach}
index c2daee1b50b231f4f13bc27e02cfec60ebec06f4..5094a8012c4daf4c1d393e0dfa878f4e77705bf3 100644 (file)
@@ -88,8 +88,7 @@ class CronjobAction extends AbstractDatabaseObjectAction implements IToggleActio
         */
        public function toggle() {
                foreach ($this->objects as $cronjob) {
-                       $newStatus = ($cronjob->active) ? 0 : 1;
-                       $cronjob->update(array('active' => $newStatus));
+                       $cronjob->update(array('isDisabled' => 1 - $cronjob->isDisabled));
                }
        }
        
index 13b8461a91f7cabdacd3987573b7b2ec1ad69977..b4cbc09abcc2cf1f3183775f2239fe3f030de453 100644 (file)
@@ -1,6 +1,7 @@
 <?php
 namespace wcf\data\language\server;
 use wcf\data\AbstractDatabaseObjectAction;
+use wcf\data\IToggleAction;
 
 /**
  * Executes language server-related actions.
@@ -12,7 +13,7 @@ use wcf\data\AbstractDatabaseObjectAction;
  * @subpackage data.language.server
  * @category   Community Framework
  */
-class LanguageServerAction extends AbstractDatabaseObjectAction {
+class LanguageServerAction extends AbstractDatabaseObjectAction implements IToggleAction {
        /**
         * @see wcf\data\AbstractDatabaseObjectAction::$className
         */
@@ -32,4 +33,22 @@ class LanguageServerAction extends AbstractDatabaseObjectAction {
         * @see wcf\data\AbstractDatabaseObjectAction::$permissionsUpdate
         */
        protected $permissionsUpdate = array('admin.language.canEditServer');
+       
+       /**
+        * @see wcf\data\IToggleAction::toggle()
+        */
+       public function toggle() {
+               foreach ($this->objects as $serverEditor) {
+                       $serverEditor->update(array(
+                               'isDisabled' => 1 - $serverEditor->isDisabled
+                       ));
+               }
+       }
+       
+       /**
+        * @see wcf\data\IToggleAction::validateToggle()
+        */
+       public function validateToggle() {
+               $this->validateUpdate();
+       }
 }
index ce70eaeaa99dbc25074efda0e474a16f7c30a2ba..8d0d8531f9262d538835e02c7f3ca3e40ddf6548 100644 (file)
@@ -33,7 +33,7 @@ class PackageUpdateServer extends DatabaseObject {
        public static function getActiveUpdateServers(array $packageUpdateServerIDs = array()) {
                $list = new PackageUpdateServerList();
                $list->sqlLimit = 0;
-               $list->getConditionBuilder()->add("disabled = ?", array(0));
+               $list->getConditionBuilder()->add("isDisabled = ?", array(0));
                if (!empty($packageUpdateServerIDs)) {
                        $list->getConditionBuilder()->add("packageUpdateServerID IN (?)", array($packageUpdateServerIDs));
                }
index 2d36da98f04adef68446f55a2e9d11796280d230..bda6e520ed34b8aa090dcb584c6833ae84c9099d 100644 (file)
@@ -46,7 +46,7 @@ class PackageUpdateServerAction extends AbstractDatabaseObjectAction implements
         */
        public function toggle() {
                foreach ($this->objects as $server) {
-                       $server->update(array('disabled' => ($server->disabled) ? 0 : 1));
+                       $server->update(array('isDisabled' => ($server->isDisabled) ? 0 : 1));
                }
        }
 }
index 7c2096fd684858807db392eee4d3c799749f70c9..b4a11a8b89871656413033095e2214b9058fdea1 100644 (file)
@@ -391,7 +391,7 @@ class StyleAction extends AbstractDatabaseObjectAction {
                        'packageID' => PACKAGE_ID,
                        'styleName' => $styleName,
                        'templateGroupID' => $this->styleEditor->templateGroupID,
-                       'disabled' => 1, // newly created styles are disabled by default
+                       'isDisabled' => 1, // newly created styles are disabled by default
                        'styleDescription' => $this->styleEditor->styleDescription,
                        'styleVersion' => $this->styleEditor->styleVersion,
                        'styleDate' => $this->styleEditor->styleDate,
@@ -454,8 +454,8 @@ class StyleAction extends AbstractDatabaseObjectAction {
         */
        public function toggle() {
                foreach ($this->objects as $style) {
-                       $disabled = ($style->disabled) ? 0 : 1;
-                       $style->update(array('disabled' => $disabled));
+                       $isDisabled = ($style->isDisabled) ? 0 : 1;
+                       $style->update(array('isDisabled' => $isDisabled));
                }
        }
        
@@ -464,7 +464,7 @@ class StyleAction extends AbstractDatabaseObjectAction {
         */
        public function validateChangeStyle() {
                $this->style = $this->getSingleObject();
-               if ($this->style->disabled && !WCF::getSession()->getPermission('admin.style.canUseDisabledStyle')) {
+               if ($this->style->isDisabled && !WCF::getSession()->getPermission('admin.style.canUseDisabledStyle')) {
                        throw new PermissionDeniedException();
                }
        }
@@ -500,7 +500,7 @@ class StyleAction extends AbstractDatabaseObjectAction {
        public function getStyleChooser() {
                $styleList = new StyleList();
                if (!WCF::getSession()->getPermission('admin.style.canUseDisabledStyle')) {
-                       $styleList->getConditionBuilder()->add("style.disabled = ?", array(0));
+                       $styleList->getConditionBuilder()->add("style.isDisabled = ?", array(0));
                }
                $styleList->sqlOrderBy = "style.styleName ASC";
                $styleList->readObjects();
index d845c8f87f1378368bf924b5a6679586955fe0af..e1509d6e7815bb0d2ca9134e66e1dc7f33f318ee 100644 (file)
@@ -103,7 +103,7 @@ class StyleEditor extends DatabaseObjectEditor implements IEditableCachedObject
                // set new default
                $this->update(array(
                        'isDefault' => 1,
-                       'disabled' => 0
+                       'isDisabled' => 0
                ));
                
                self::resetCache();
index e9ee004415d72a6a2740bb00a27cfcaa22242ccd..6048d546f597482f0d57685bece5f5d9f036555d 100644 (file)
@@ -82,7 +82,7 @@ class UserOptionEditor extends DatabaseObjectEditor {
                $value = intval(!$enable);
                
                $sql = "UPDATE  wcf".WCF_N."_user_option
-                       SET     disabled = ?
+                       SET     isDisabled = ?
                        WHERE   optionID = ?";
                $statement = WCF::getDB()->prepareStatement($sql);
                $statement->execute(array($value, $this->optionID));
index a59aa98d3b1bc9c48735f2be2f2613f53e0365d4..dd17649513e6e195985b49a1712a4a3cbc3dc8ea 100644 (file)
@@ -105,14 +105,14 @@ class CronjobScheduler extends SingletonFactory {
                $sql = "SELECT  *
                        FROM    wcf".WCF_N."_cronjob cronjob
                        WHERE   (cronjob.nextExec <= ? OR cronjob.afterNextExec <= ?)
-                               AND cronjob.active = ?
+                               AND cronjob.isDisabled = ?
                                AND cronjob.failCount < ?
                                AND cronjob.state = ?";
                $statement = WCF::getDB()->prepareStatement($sql);
                $statement->execute(array(
                        TIME_NOW,
                        TIME_NOW,
-                       1,
+                       0,
                        Cronjob::MAX_FAIL_COUNT,
                        Cronjob::READY
                ));
@@ -132,7 +132,7 @@ class CronjobScheduler extends SingletonFactory {
                                
                                // disable cronjob
                                if ($failCount == 3) {
-                                       $data['active'] = 0;
+                                       $data['isDisabled'] = 1;
                                        $executeCronjob = false;
                                }
                        }
index 5ef52f0d4c4323fc4d6b1c93bf63740091e650cc..7dfffe5b2bc734b1145cc7594362625b5b0efbaa 100644 (file)
@@ -162,7 +162,7 @@ class UserOptionHandler extends OptionHandler {
         * @see wcf\system\option\OptionHandler::checkVisibility()
         */
        protected function checkVisibility(Option $option) {
-               if ($option->disabled) {
+               if ($option->isDisabled) {
                        return false;
                }
                
index bbe34e1282e2a78938b7c0fd0009062109e515a3..d275e2fe0d560aa8c6a5644adb3f570582c7cba0 100644 (file)
@@ -56,11 +56,11 @@ class CronjobPackageInstallationPlugin extends AbstractXMLPackageInstallationPlu
         */
        protected function prepareImport(array $data) {
                return array(
-                       'active' => (isset($data['elements']['active'])) ? intval($data['elements']['active']) : 1,
                        'canBeDisabled' => (isset($data['elements']['canbedisabled'])) ? intval($data['elements']['canbedisabled']) : 1,
                        'canBeEdited' => (isset($data['elements']['canbeedited'])) ? intval($data['elements']['canbeedited']) : 1,
                        'className' => (isset($data['elements']['classname'])) ? $data['elements']['classname'] : '',
                        'description' => (isset($data['elements']['description'])) ? $data['elements']['description'] : '',
+                       'isDisabled' => (isset($data['elements']['isdisabled'])) ? intval($data['elements']['isdisabled']) : 0,
                        'startDom' => $data['elements']['startdom'],
                        'startDow' => $data['elements']['startdow'],
                        'startHour' => $data['elements']['starthour'],
index 213ee90a2ca7210439fd15df0b386b6e8548c6ba..23677bac6dd090ab7f04114d59a20aaee4c7fcff 100644 (file)
@@ -28,7 +28,7 @@ class UserOptionPackageInstallationPlugin extends AbstractOptionPackageInstallat
         * list of names of tags which aren't considered as additional data
         * @var array<string>
         */
-       public static $reservedTags = array('name', 'optiontype', 'defaultvalue', 'validationpattern', 'required', 'editable', 'visible', 'searchable', 'showorder', 'outputclass', 'selectoptions', 'enableoptions', 'disabled', 'categoryname', 'permissions', 'options', 'attrs', 'cdata');
+       public static $reservedTags = array('name', 'optiontype', 'defaultvalue', 'validationpattern', 'required', 'editable', 'visible', 'searchable', 'showorder', 'outputclass', 'selectoptions', 'enableoptions', 'isdisabled', 'categoryname', 'permissions', 'options', 'attrs', 'cdata');
        
        /**
         * @see wcf\system\package\plugin\AbstractOptionPackageInstallationPlugin::saveCategory()
@@ -63,7 +63,7 @@ class UserOptionPackageInstallationPlugin extends AbstractOptionPackageInstallat
        protected function saveOption($option, $categoryName, $existingOptionID = 0) {
                // default values
                $optionName = $optionType = $validationPattern = $outputClass = $selectOptions = $enableOptions = $permissions = $options = '';
-               $required = $editable = $visible = $searchable = $disabled = $askDuringRegistration = 0;
+               $required = $editable = $visible = $searchable = $isDisabled = $askDuringRegistration = 0;
                $defaultValue = $showOrder = null;
                
                // get values
@@ -80,7 +80,7 @@ class UserOptionPackageInstallationPlugin extends AbstractOptionPackageInstallat
                if (isset($option['outputclass'])) $outputClass = $option['outputclass'];
                if (isset($option['selectoptions'])) $selectOptions = $option['selectoptions'];
                if (isset($option['enableoptions'])) $enableOptions = $option['enableoptions'];
-               if (isset($option['disabled'])) $disabled = intval($option['disabled']);
+               if (isset($option['isdisabled'])) $isDisabled = intval($option['isdisabled']);
                $showOrder = $this->getShowOrder($showOrder, $categoryName, 'categoryName');
                if (isset($option['permissions'])) $permissions = $option['permissions'];
                if (isset($option['options'])) $options = $option['options'];
@@ -124,7 +124,7 @@ class UserOptionPackageInstallationPlugin extends AbstractOptionPackageInstallat
                        'outputClass' => $outputClass,
                        'searchable' => $searchable,
                        'showOrder' => $showOrder,
-                       'disabled' => $disabled,
+                       'isDisabled' => $isDisabled,
                        'permissions' => $permissions,
                        'options' => $options,
                        'additionalData' => serialize($additionalData)
index 2951d33a528a73493e201483a3817caa00c02c57..bac726d53f25ea6afe2310f1520a22db1fa718d2 100644 (file)
@@ -53,7 +53,7 @@ class StyleHandler extends SingletonFactory {
                $styles = array();
                
                foreach ($this->cache['styles'] as $styleID => $style) {
-                       if ((!$style->disabled && empty($this->cache['packages'][PACKAGE_ID]['disabled'][$styleID])) || WCF::getSession()->getPermission('admin.style.canUseDisabledStyle')) {
+                       if ((!$style->isDisabled && empty($this->cache['packages'][PACKAGE_ID]['disabled'][$styleID])) || WCF::getSession()->getPermission('admin.style.canUseDisabledStyle')) {
                                $styles[$styleID] = $style;
                        }
                }
@@ -84,7 +84,7 @@ class StyleHandler extends SingletonFactory {
                // check permission
                if (!$ignorePermissions) {
                        if (isset($this->cache['styles'][$styleID])) {
-                               if (($this->cache['styles'][$styleID]->disabled || !empty($this->cache['packages'][PACKAGE_ID]['disabled'][$styleID])) && !WCF::getSession()->getPermission('admin.style.canUseDisabledStyle')) {
+                               if (($this->cache['styles'][$styleID]->isDisabled || !empty($this->cache['packages'][PACKAGE_ID]['disabled'][$styleID])) && !WCF::getSession()->getPermission('admin.style.canUseDisabledStyle')) {
                                        $styleID = 0;
                                }
                        }
index e46458b30d2814081725bcb55dbfc14e1cba025b..c729996143f6fac4af1c46686a5ed3635210e6fd 100644 (file)
@@ -166,7 +166,7 @@ CREATE TABLE wcf1_cronjob (
        lastExec INT(10) NOT NULL DEFAULT 0,
        nextExec INT(10) NOT NULL DEFAULT 0,
        afterNextExec INT(10) NOT NULL DEFAULT 0,
-       active TINYINT(1) NOT NULL DEFAULT 1,
+       isDisabled TINYINT(1) NOT NULL DEFAULT 0,
        canBeEdited TINYINT(1) NOT NULL DEFAULT 1,
        canBeDisabled TINYINT(1) NOT NULL DEFAULT 1,
        state TINYINT(1) NOT NULL DEFAULT 0,
@@ -232,7 +232,7 @@ DROP TABLE IF EXISTS wcf1_language_server;
 CREATE TABLE wcf1_language_server (
        languageServerID INT(10) NOT NULL AUTO_INCREMENT PRIMARY KEY,
        serverURL VARCHAR(255) NOT NULL DEFAULT '',
-       disabled TINYINT(1) NOT NULL DEFAULT 0
+       isDisabled TINYINT(1) NOT NULL DEFAULT 0
 );
 
 DROP TABLE IF EXISTS wcf1_modification_log;
@@ -446,7 +446,7 @@ CREATE TABLE wcf1_package_update_server (
        serverURL VARCHAR(255) NOT NULL DEFAULT '',
        loginUsername VARCHAR(255) NOT NULL DEFAULT '',
        loginPassword VARCHAR(255) NOT NULL DEFAULT '',
-       disabled TINYINT(1) NOT NULL DEFAULT 0,
+       isDisabled TINYINT(1) NOT NULL DEFAULT 0,
        lastUpdateTime INT(10) NOT NULL DEFAULT 0,
        status ENUM('online', 'offline') NOT NULL DEFAULT 'online',
        errorMessage TEXT
@@ -537,7 +537,7 @@ CREATE TABLE wcf1_style (
        styleName VARCHAR(255) NOT NULL DEFAULT '',
        templateGroupID INT(10) NOT NULL DEFAULT 0,
        isDefault TINYINT(1) NOT NULL DEFAULT 0,
-       disabled TINYINT(1) NOT NULL DEFAULT 0,
+       isDisabled TINYINT(1) NOT NULL DEFAULT 0,
        styleDescription TEXT,
        styleVersion VARCHAR(255) NOT NULL DEFAULT '',
        styleDate CHAR(10) NOT NULL DEFAULT '0000-00-00',
@@ -685,7 +685,7 @@ CREATE TABLE wcf1_user_option (
        outputClass VARCHAR(255) NOT NULL DEFAULT '',
        searchable TINYINT(1) NOT NULL DEFAULT 0,
        showOrder INT(10) NOT NULL DEFAULT 0,
-       disabled TINYINT(1) NOT NULL DEFAULT 0,
+       isDisabled TINYINT(1) NOT NULL DEFAULT 0,
        permissions TEXT,
        options TEXT,
        additionalData MEDIUMTEXT,
@@ -880,8 +880,8 @@ INSERT INTO wcf1_user_group_option_value (groupID, optionID, optionValue) VALUES
 INSERT INTO wcf1_user_group_option_value (groupID, optionID, optionValue) VALUES (4, 3, '1');  -- Administrators
 
 -- default update servers
-INSERT INTO wcf1_package_update_server (serverURL, status, disabled, errorMessage, lastUpdateTime, loginUsername, loginPassword) VALUES ('http://update.woltlab.com/maelstrom/', 'online', 0, NULL, 0, '', '');
-INSERT INTO wcf1_package_update_server (serverURL, status, disabled, errorMessage, lastUpdateTime, loginUsername, loginPassword) VALUES ('http://store.woltlab.com/maelstrom/', 'online', 0, NULL, 0, '', '');
+INSERT INTO wcf1_package_update_server (serverURL, status, isDisabled, errorMessage, lastUpdateTime, loginUsername, loginPassword) VALUES ('http://update.woltlab.com/maelstrom/', 'online', 0, NULL, 0, '', '');
+INSERT INTO wcf1_package_update_server (serverURL, status, isDisabled, errorMessage, lastUpdateTime, loginUsername, loginPassword) VALUES ('http://store.woltlab.com/maelstrom/', 'online', 0, NULL, 0, '', '');
 
 -- style default values
 INSERT INTO wcf1_style_variable (variableName, defaultValue) VALUES ('wcfContentBackgroundColor', 'rgba(255, 255, 255, 1)');