added new et ref field for eshop

This commit is contained in:
2024-09-12 08:36:14 +02:00
parent 19e786abd0
commit f5dde09ea5
4 changed files with 32 additions and 4 deletions

View File

@@ -0,0 +1,22 @@
<?php /** @noinspection ALL */
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class WarehouseAddEShopExtRef extends AbstractMigration {
public function up(): void {
if ($this->getEnvironment() == "thetool") {
$WarehouseEShopOrder = $this->table("WarehouseEShopOrder");
$WarehouseEShopOrder->addColumn("ext_ref", "string", ["limit" => 255, "null" => true]);
$WarehouseEShopOrder->update();
}
}
public function down(): void {
if ($this->getEnvironment() == "thetool") {
$WarehouseEShopOrder = $this->table("WarehouseEShopOrder");
$WarehouseEShopOrder->removeColumn("ext_ref");
$WarehouseEShopOrder->update();
}
}
}