Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Jan 31, 2019
1 parent 54ecb41 commit e578f57
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/code/local/ItsAPiece/PinkTown/Importer.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ function p() {
;});
foreach ($productsWithoutSku as $p) {
Deleter::p($p);
}
}
$t = df_table('catalog_product_entity_int'); /** @var string $t */
/** @var int $max */
$max = intval(df_conn()->fetchOne(df_select()->from($t, [new \Zend_Db_Expr('MAX(value_id)')])));
df_conn()->query("ALTER TABLE $t AUTO_INCREMENT = $max;");
/** @var P[] $productsWithoutSku */
$productsWithSku = array_filter($pc->getItems(), function(P $p) {return !!$p->getSku();});
/** @var array(string => P) $pMap */
Expand Down

0 comments on commit e578f57

Please sign in to comment.