<instructions type="update" fromversion="2.1.12">
<instruction type="file">files_pre_update.tar</instruction>
<instruction type="script">acp/update_com.woltlab.wcf_3.0_pre_sql.php</instruction>
+ <instruction type="sql">update_page.sql</instruction>
<instruction type="file" run="standalone">files.tar</instruction>
<instruction type="sql" run="standalone">update.sql</instruction>
DROP TABLE IF EXISTS wcf1_page_menu_item;
-DROP TABLE IF EXISTS wcf1_page;
-CREATE TABLE wcf1_page (
- pageID INT(10) NOT NULL AUTO_INCREMENT PRIMARY KEY,
- parentPageID INT(10),
- identifier VARCHAR(255) NOT NULL,
- name VARCHAR(255) NOT NULL,
- pageType VARCHAR(255) NOT NULL,
- isDisabled TINYINT(1) NOT NULL DEFAULT 0,
- isLandingPage TINYINT(1) NOT NULL DEFAULT 0,
- isMultilingual TINYINT(1) NOT NULL DEFAULT 0,
- originIsSystem TINYINT(1) NOT NULL DEFAULT 0,
- packageID INT(10) NOT NULL,
- applicationPackageID INT(10),
- controller VARCHAR(255) NOT NULL DEFAULT '',
- handler VARCHAR(255) NOT NULL DEFAULT '',
- controllerCustomURL VARCHAR(255) NOT NULL DEFAULT '',
- requireObjectID TINYINT(1) NOT NULL DEFAULT 0,
- hasFixedParent TINYINT(1) NOT NULL DEFAULT 0,
- lastUpdateTime INT(10) NOT NULL DEFAULT 0,
- permissions TEXT NULL,
- options TEXT NULL
-);
-
-DROP TABLE IF EXISTS wcf1_page_content;
-CREATE TABLE wcf1_page_content (
- pageContentID INT(10) NOT NULL AUTO_INCREMENT PRIMARY KEY,
- pageID INT(10) NOT NULL,
- languageID INT(10),
- title VARCHAR(255) NOT NULL,
- content MEDIUMTEXT,
- metaDescription TEXT,
- metaKeywords TEXT,
- customURL VARCHAR(255) NOT NULL,
- hasEmbeddedObjects TINYINT(1) NOT NULL DEFAULT 0,
-
- UNIQUE KEY (pageID, languageID)
-);
-
ALTER TABLE wcf1_session DROP COLUMN controller;
ALTER TABLE wcf1_session DROP COLUMN parentObjectType;
ALTER TABLE wcf1_session DROP COLUMN parentObjectID;
--- /dev/null
+DROP TABLE IF EXISTS wcf1_page;
+CREATE TABLE wcf1_page (
+ pageID INT(10) NOT NULL AUTO_INCREMENT PRIMARY KEY,
+ parentPageID INT(10),
+ identifier VARCHAR(255) NOT NULL,
+ name VARCHAR(255) NOT NULL,
+ pageType VARCHAR(255) NOT NULL,
+ isDisabled TINYINT(1) NOT NULL DEFAULT 0,
+ isLandingPage TINYINT(1) NOT NULL DEFAULT 0,
+ isMultilingual TINYINT(1) NOT NULL DEFAULT 0,
+ originIsSystem TINYINT(1) NOT NULL DEFAULT 0,
+ packageID INT(10) NOT NULL,
+ applicationPackageID INT(10),
+ controller VARCHAR(255) NOT NULL DEFAULT '',
+ handler VARCHAR(255) NOT NULL DEFAULT '',
+ controllerCustomURL VARCHAR(255) NOT NULL DEFAULT '',
+ requireObjectID TINYINT(1) NOT NULL DEFAULT 0,
+ hasFixedParent TINYINT(1) NOT NULL DEFAULT 0,
+ lastUpdateTime INT(10) NOT NULL DEFAULT 0,
+ permissions TEXT NULL,
+ options TEXT NULL
+);
+
+DROP TABLE IF EXISTS wcf1_page_content;
+CREATE TABLE wcf1_page_content (
+ pageContentID INT(10) NOT NULL AUTO_INCREMENT PRIMARY KEY,
+ pageID INT(10) NOT NULL,
+ languageID INT(10),
+ title VARCHAR(255) NOT NULL,
+ content MEDIUMTEXT,
+ metaDescription TEXT,
+ metaKeywords TEXT,
+ customURL VARCHAR(255) NOT NULL,
+ hasEmbeddedObjects TINYINT(1) NOT NULL DEFAULT 0,
+
+ UNIQUE KEY (pageID, languageID)
+);
* @since 3.0
*/
public function getApplicationByID($packageID) {
+ if ($packageID == 1 && !isset($this->cache['application'][1])) {// work-around for update from 2.1 (out-dated cache)
+ $this->cache['application'][1] = new Application(1);
+ }
if (isset($this->cache['application'][$packageID])) {
return $this->cache['application'][$packageID];
}