<packagedescription>Free CMS and web-framework, designed for awesome websites and communities.</packagedescription>
<packagedescription language="de">Freies CMS und Web-Framework, das eindrucksvolle Websites und Communities ermöglicht.</packagedescription>
<isapplication>1</isapplication>
- <version>5.2.0 Beta 4</version> <!-- codename: hurricane -->
+ <version>5.2.0 RC 1</version> <!-- codename: hurricane -->
<date>2019-12-01</date>
</packageinformation>
<instruction type="language" run="standalone" />
<!-- update database structure using new api -->
- <instruction type="script">acp/update-com.woltlab.wcf_5.2.php</instruction>
+ <instruction type="script" flushCache="false">acp/update-com.woltlab.wcf_5.2.php</instruction>
<!-- convert likes to reactions -->
- <instruction type="script">acp/update-com.woltlab.wcf_5.2_reactionUpdate.php</instruction>
-
- <!-- reload routing cache to avoid an exception because the new applicationOverride information is missing in cache -->
- <instruction type="script" run="standalone">acp/update-com.woltlab.wcf_5.2_reloadRoutingCache.php</instruction>
+ <instruction type="script" flushCache="false">acp/update-com.woltlab.wcf_5.2_reactionUpdate.php</instruction>
<instruction type="option" />
<!-- reload options using the new OptionEditor for providing the enterprise-mode option for further requests (required after file-PIP!) -->
->onDelete('SET NULL')
]),
+ // Re-create the key to turn it into a unique key: https://github.com/WoltLab/WCF/issues/3116
+ DatabaseTable::create('wcf1_package')
+ ->indices([
+ DatabaseTableIndex::create('package')
+ ->columns(['package'])
+ ->drop()
+ ]),
DatabaseTable::create('wcf1_package')
->indices([
DatabaseTableIndex::create('package')
dislikes = 0";
WCF::getDB()->prepareStatement($sql)->execute();
- $statement = WCF::getDB()->prepareStatement('ALTER TABLE wcf'.WCF_N.'_like ADD FOREIGN KEY (reactionTypeID) REFERENCES wcf1_reaction_type (reactionTypeID) ON DELETE CASCADE');
+ $statement = WCF::getDB()->prepareStatement('ALTER TABLE wcf'.WCF_N.'_like ADD FOREIGN KEY (reactionTypeID) REFERENCES wcf'.WCF_N.'_reaction_type (reactionTypeID) ON DELETE CASCADE');
$statement->execute();
WCF::getDB()->commitTransaction();
}
// define current woltlab suite version
-define('WCF_VERSION', '5.2.0 Beta 4');
+define('WCF_VERSION', '5.2.0 RC 1');
// define current API version
// @deprecated 5.2
/**
* Returns a `PrimaryDatabaseTableIndex` object with `PRIMARY` as name and primary as type.
*
+ * @inheritDoc
* @return $this
*/
- public static function create() {
+ public static function create($name = '') {
+ if (!empty($name)) {
+ throw new \LogicException('The primary index cannot be assigned a name.');
+ }
+
return parent::create('PRIMARY')
->type(static::PRIMARY_TYPE);
}