updated warehouseoffer
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
<?php /** @noinspection ALL */
|
||||
declare(strict_types = 1);
|
||||
|
||||
use Phinx\Migration\AbstractMigration;
|
||||
|
||||
final class WarehouseModify23 extends AbstractMigration {
|
||||
public function up(): void {
|
||||
if ($this->getEnvironment() == "thetool") {
|
||||
$WarehouseOffer = $this->table("WarehouseOffer");
|
||||
|
||||
if ($WarehouseOffer->hasColumn("customerVAT")) {
|
||||
$WarehouseOffer
|
||||
->changeColumn("customerVAT", "string", ["limit" => 255, "null" => true])
|
||||
->update();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function down(): void {
|
||||
if ($this->getEnvironment() == "thetool") {
|
||||
$WarehouseOffer = $this->table("WarehouseOffer");
|
||||
|
||||
if ($WarehouseOffer->hasColumn("customerVAT")) {
|
||||
$WarehouseOffer
|
||||
->changeColumn("customerVAT", "string", ["limit" => 255, "null" => false])
|
||||
->update();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user