{"issue":{"created_at":"2011-08-23T17:03:59Z","state":"open","updated_at":"2011-11-18T11:29:07Z","user":{"gravatar_id":"1424a78d03ef36a2636207904fc09c61","id":352003,"url":"https://api.github.com/users/lasker","login":"lasker","avatar_url":"https://secure.gravatar.com/avatar/1424a78d03ef36a2636207904fc09c61?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"comments":1,"body":"Ich habe die Aktivierung nur mit 2 Änderungen im Installer durch bekommen.\r\n\r\n1) -> Deaktivierung des globlen Changetable. Scheitert am fehlenden Prefix. \r\n\r\n     public function upgrade($oldversion)\r\n       {\r\n         // Get database information\r\n         ModUtil::dbInfoLoad('Formicula');\r\n        // perform a global db change for all versions >= 0.4\r\n        //        if(version_compare($oldversion, '0.5', '>')) {\r\n       //            if (!DBUtil::changeTable('formcontacts')) {\r\n       //                return LogUtil::registerError($this->__('Database upgrade failed'));\r\n       //            }\r\n       //       }\r\n\r\n\r\n\r\n2) -> Fehlender Rename der formcontacts. Dafür mal alles was im Upgrade 3.0.0 steht. \r\n \r\n\r\n            case '3.0.0':\r\n\t\t\t\t// remove table prefixes manually\r\n                $prefix = $this->serviceManager['prefix'];\r\n                $connection = Doctrine_Manager::getInstance()->getConnection('default');\r\n                $sqlStatements = array();\r\n                // N.B. statements generated with PHPMyAdmin\r\n                $sqlStatements[] = 'RENAME TABLE ' . $prefix . '_formcontacts' . \" TO `formcontacts`\";\r\n                // this removes the prefixes but also changes hideonindex to displayonindex and disallowcomments to allowcomments\r\n                // because 'from' and 'to' are reserved sql words, the column names are changed to ffrom and tto respectively\r\n                foreach ($sqlStatements as $sql) {\r\n                    $stmt = $connection->prepare($sql);\r\n                    try {\r\n                        $stmt->execute();\r\n                    } catch (Exception $e) {\r\n                    }   \r\n                }\r\n                if (!DBUtil::changeTable('formcontacts')) {\r\n                    return '3.0.0';\r\n                }\r\n               // create the formicula table for storing submits\r\n                if (!DBUtil::createTable('formsubmits')) {\r\n                    return LogUtil::registerError($this->__('The installer could not create the formsubmits table'));\r\n                }\r\n                $this->setVar('store_data', 0);\r\n                $this->setVar('store_data_forms', '');\r\n                // register handlers\r\n                EventUtil::registerPersistentModuleHandler('Formicula', 'module.content.gettypes', array('Formicula_Handlers', 'getTypes'));\r\n                // Call the update method for the Content plugin\r\n                if (ModUtil::available('Content')) {\r\n                    Content_Installer::updateContentType('Formicula');\r\n                }\r\n            case '3.0.1':\r\n\r\n","assignee":null,"id":1468031,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"number":21,"labels":[{"name":"Blocker","color":"e10c02","url":"https://api.github.com/repos/landseer/Formicula/labels/Blocker"}],"title":"Upgrade Problem to 3.0.0","closed_at":null,"html_url":"https://github.com/landseer/Formicula/issues/21","milestone":{"created_at":"2011-11-07T10:07:30Z","state":"open","due_on":null,"closed_issues":0,"creator":{"gravatar_id":"23caae53f63ffa43084b7c6ab70a177e","id":343705,"url":"https://api.github.com/users/hvorragend","login":"hvorragend","avatar_url":"https://secure.gravatar.com/avatar/23caae53f63ffa43084b7c6ab70a177e?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"number":1,"title":"Formicula 3.0.0","description":"First version for Zikula 1.3.0","url":"https://api.github.com/repos/landseer/Formicula/milestones/1","open_issues":4},"url":"https://api.github.com/repos/landseer/Formicula/issues/21"},"action":"created","comment":{"created_at":"2011-11-18T11:29:07Z","updated_at":"2011-11-18T11:29:07Z","user":{"gravatar_id":"23caae53f63ffa43084b7c6ab70a177e","id":343705,"url":"https://api.github.com/users/hvorragend","login":"hvorragend","avatar_url":"https://secure.gravatar.com/avatar/23caae53f63ffa43084b7c6ab70a177e?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"+1","id":2788118,"url":"https://api.github.com/repos/landseer/Formicula/issues/comments/2788118"}}