Remove obsolete manual removal of style_variable_values
authorTim Düsterhus <duesterhus@woltlab.com>
Wed, 22 Jul 2020 14:11:43 +0000 (16:11 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Wed, 22 Jul 2020 14:11:43 +0000 (16:11 +0200)
The FOREIGN KEY handles that.

wcfsetup/install/files/lib/data/style/StyleEditor.class.php

index d51f311ef61b2d78c903536ab725b82f31a893a6..ccf0ed6129a866fa0ddfb0847b0c178166ad4ace 100644 (file)
@@ -81,12 +81,6 @@ class StyleEditor extends DatabaseObjectEditor implements IEditableCachedObject
        public function delete() {
                parent::delete();
                
-               // delete variables
-               $sql = "DELETE FROM     wcf".WCF_N."_style_variable_value
-                       WHERE           styleID = ?";
-               $statement = WCF::getDB()->prepareStatement($sql);
-               $statement->execute([$this->styleID]);
-               
                // delete style files
                $files = @glob(WCF_DIR.'style/style-'.$this->styleID.'*.css');
                if (is_array($files)) {