Merge branch 'bugfix/e-shop' into 'master'
added shipping notes for warehouse e shop See merge request fronk/thetool!659
This commit is contained in:
23
db/migrations/20241010100000_shipping_note_add_order_id.php
Normal file
23
db/migrations/20241010100000_shipping_note_add_order_id.php
Normal file
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user