added shipping notes for warehouse e shop

This commit is contained in:
2024-10-10 11:19:35 +02:00
parent fd70379db6
commit 6b2e0eb14e
6 changed files with 152 additions and 27 deletions
@@ -0,0 +1,23 @@
<?php /** @noinspection ALL */
declare(strict_types = 1);
use Phinx\Migration\AbstractMigration;
final class ShippingNoteAddOrderId extends AbstractMigration {
public function up(): void {
if ($this->getEnvironment() == "thetool") {
$WarehouseShippingNote = $this->table("WarehouseShippingNote");
$WarehouseShippingNote->addColumn('eShopOrderId', 'integer', ['null' => true]);
$WarehouseShippingNote->update();
}
}
public function down(): void {
if ($this->getEnvironment() == "thetool") {
$WarehouseShippingNote = $this->table("WarehouseShippingNote");
$WarehouseShippingNote->removeColumn('eShopOrderId');
$WarehouseShippingNote->update();
}
}
}