summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2026-05-22 14:37:35 +0100
committerLester Caine <lester@lsces.co.uk>2026-05-22 14:37:35 +0100
commita2a57c81cc4a4a6a47c160c359a4271d9aaa6c53 (patch)
tree7df3a06f40a5fa5b4312d443bba16d122d5359a8
parent3c1475fcf91f525ea3b1bc6ff3f19b142b489e62 (diff)
downloadcontact-a2a57c81cc4a4a6a47c160c359a4271d9aaa6c53.tar.gz
contact-a2a57c81cc4a4a6a47c160c359a4271d9aaa6c53.tar.bz2
contact-a2a57c81cc4a4a6a47c160c359a4271d9aaa6c53.zip
Fix 5.0.2 DROPTABLE/DROPSEQUENCE array nesting
Extra level of nesting caused PHP to pass an array as the table name, producing 'DROP TABLE ARRAY'. applyUpgrade iterates two levels itself. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
-rw-r--r--admin/upgrades/5.0.2.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/admin/upgrades/5.0.2.php b/admin/upgrades/5.0.2.php
index c97ec6f..d57fb61 100644
--- a/admin/upgrades/5.0.2.php
+++ b/admin/upgrades/5.0.2.php
@@ -13,8 +13,8 @@ $gBitInstaller->registerPackageUpgrade(
],
[
[ 'DATADICT' => [
- [ 'DROPTABLE' => [ [ 'contact_xref', 'contact_xref_source', 'contact_xref_type' ] ] ],
- [ 'DROPSEQUENCE' => [ [ 'contact_xref_seq' ] ] ],
+ [ 'DROPTABLE' => [ 'contact_xref', 'contact_xref_source', 'contact_xref_type' ] ],
+ [ 'DROPSEQUENCE' => [ 'contact_xref_seq' ] ],
]],
]
);