<instruction type="acpTemplate">acptemplates_update.tar</instruction>
<instruction type="template">templates_update.tar</instruction>
<instruction type="language">language/*.xml</instruction>
- <instruction type="option">option.xml</instruction>
<instruction type="sql" run="standalone">update_b10.sql</instruction>
+ <instruction type="option">option.xml</instruction>
</instructions>
</package>
ALTER TABLE wcf1_user_storage CHANGE fieldValue fieldValue MEDIUMTEXT;
/* ec09840 */
-DROP TABLE IF EXISTS wcf1_cli_history;
CREATE TABLE wcf1_cli_history (
historyItem INT(10) NOT NULL AUTO_INCREMENT PRIMARY KEY,
userID INT(10) NOT NULL,
$this->emptyNode = true;
$instructions = ($this->installation->getAction() == 'install') ? $this->installation->getArchive()->getInstallInstructions() : $this->installation->getArchive()->getUpdateInstructions();
+ $count = count($instructions);
+ $i = 0;
foreach ($instructions as $pip) {
+ $i++;
+
if (isset($pip['attributes']['run']) && ($pip['attributes']['run'] == 'standalone')) {
// move into a new node unless current one is empty
if (!$this->emptyNode) {
'sequenceNo' => $this->sequenceNo
);
- // create a new node for following PIPs
- $this->parentNode = $this->node;
- $this->node = $this->getToken();
- $this->sequenceNo = 0;
-
- $this->emptyNode = true;
+ // create a new node for following PIPs, unless it is the last one
+ if ($i < $count) {
+ $this->parentNode = $this->node;
+ $this->node = $this->getToken();
+ $this->sequenceNo = 0;
+
+ $this->emptyNode = true;
+ }
}
else {
$this->sequenceNo++;