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