replace oDb->getAssoc by oDb->getRow

getAssoc was deprecated in OXID 4.10 and was removed in OXID 6.
This commit is contained in:
Marten Seemann 2020-03-14 18:19:19 +07:00 gecommit door Marat
bovenliggende fb3496187b
commit ede6af99f9
2 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen

Bestand weergeven

@ -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'");

Bestand weergeven

@ -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'");