23 lines
771 B
PHP
23 lines
771 B
PHP
<?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();
|
|
}
|
|
}
|
|
} |