replace oDb->getAssoc by oDb->getRow
getAssoc was deprecated in OXID 4.10 and was removed in OXID 6.
This commit is contained in:
bovenliggende
fb3496187b
commit
ede6af99f9
@ -19,7 +19,7 @@ class blatm_events extends oxI18n
|
||||
{
|
||||
/** @var oxLegacyDb $oDb */
|
||||
$oDb = oxDb::getDB();
|
||||
$aColumns = $oDb->getAssoc("SHOW COLUMNS FROM oxorder");
|
||||
$aColumns = $oDb->getRow("SHOW COLUMNS FROM oxorder");
|
||||
|
||||
// rename BLAREFERRER column -> BLAHTTPREF or create new
|
||||
if( array_key_exists( "BLAREFERRER", $aColumns )) $oDb->Execute("ALTER TABLE `oxorder` CHANGE `BLAREFERRER` `BLAHTTPREF` TEXT NOT NULL COMMENT 'bla/tag-manager http ref'");
|
||||
|
@ -29,7 +29,7 @@ class blatracking_events extends oxI18n {
|
||||
{
|
||||
/** @var oxLegacyDb $oDb */
|
||||
$oDb = oxDb::getDB();
|
||||
$aColumns = $oDb->getAssoc("SHOW COLUMNS FROM oxorder");
|
||||
$aColumns = $oDb->getRow("SHOW COLUMNS FROM oxorder");
|
||||
|
||||
// rename BLAREFERRER column or create new
|
||||
if( array_key_exists( "BLAREFERRER", $aColumns )) $oDb->Execute("ALTER TABLE `oxorder` CHANGE `BLAREFERRER` `BLAHTTPREF` TEXT NOT NULL COMMENT 'bla-tracking http ref'");
|
||||
|
Laden…
Verwijs in nieuw issue
Block a user