Remove remnants of application landing pages
authorMatthias Schmidt <gravatronics@live.com>
Wed, 6 Apr 2016 08:22:15 +0000 (10:22 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Wed, 6 Apr 2016 08:22:15 +0000 (10:22 +0200)
See a80873d5fe45732dd39a51a89f6f58a91656fc50

wcfsetup/install/files/lib/data/application/Application.class.php
wcfsetup/install/files/lib/data/application/ApplicationAction.class.php
wcfsetup/setup/db/install.sql

index fe9e91dec9636727e181201196a977c0c58b0250..3d781e9aa91e2adb6ddb18cda86303bdca7346ae 100644 (file)
@@ -24,7 +24,6 @@ use wcf\util\FileUtil;
  * @property-read      string          $domainPath
  * @property-read      string          $cookieDomain
  * @property-read      string          $cookiePath
- * @property-read      integer|null    $landingPageID
  */
 class Application extends DatabaseObject {
        /**
index 2cd4b711acbdefd152b7f39a370deaa316ef2aaf..83238344990b70b8a49ddb4183ddf3f65d49627c 100644 (file)
@@ -102,16 +102,4 @@ class ApplicationAction extends AbstractDatabaseObjectAction {
                // reset application cache
                ApplicationCacheBuilder::getInstance()->reset();
        }
-       
-       /**
-        * Sets landing pages for applications.
-        */
-       public function setLandingPage() {
-               /** @var ApplicationEditor $applicationEditor */
-               foreach ($this->objects as $applicationEditor) {
-                       $applicationEditor->update([
-                               'landingPageID' => $this->parameters['landingPages'][$applicationEditor->packageID]
-                       ]);
-               }
-       }
 }
index 130ad586a5558ed54d5d3eb0f408d52b2adffaf8..97b531c554688f11fc5d88065e129b0b836635ed 100644 (file)
@@ -1630,7 +1630,6 @@ ALTER TABLE wcf1_acp_template ADD FOREIGN KEY (packageID) REFERENCES wcf1_packag
 ALTER TABLE wcf1_ad ADD FOREIGN KEY (objectTypeID) REFERENCES wcf1_object_type (objectTypeID) ON DELETE CASCADE;
 
 ALTER TABLE wcf1_application ADD FOREIGN KEY (packageID) REFERENCES wcf1_package (packageID) ON DELETE CASCADE;
-ALTER TABLE wcf1_application ADD FOREIGN KEY (landingPageID) REFERENCES wcf1_page (pageID) ON DELETE SET NULL;
 
 ALTER TABLE wcf1_attachment ADD FOREIGN KEY (objectTypeID) REFERENCES wcf1_object_type (objectTypeID) ON DELETE CASCADE;
 ALTER TABLE wcf1_attachment ADD FOREIGN KEY (userID) REFERENCES wcf1_user (userID) ON DELETE SET NULL;