added new et ref field for eshop
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user