first commit

This commit is contained in:
2025-08-02 16:30:27 +02:00
commit 23646bfcee
14851 changed files with 1750626 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
<?php
class Upgrade7 extends UpgradeNew
{
// overi, jestli je opravnene provest upgrade
public function checkRightfulness_1()
{
$change = true;
$SQL = sqlQuery('SHOW FIELDS FROM '.getTableName('products'));
while ($row = sqlFetchArray($SQL)) {
if ($row['Field'] == 'ean') {
$change = false;
break;
}
}
return $change;
}
// provest samotny upgrade
public function makeChanges_1()
{
sqlQuery('ALTER TABLE '.getTableName('products').' ADD ean BIGINT NULL AFTER code;');
sqlQuery('ALTER TABLE '.getTableName('products_variations').' ADD ean BIGINT NULL AFTER id_product;');
$this->upgradeOK();
}
}