Merge branch 'e-shop-add-address-line' into 'master'
added migration See merge request fronk/thetool!940
This commit is contained in:
@@ -0,0 +1,24 @@
|
|||||||
|
<?php declare(strict_types=1);
|
||||||
|
|
||||||
|
use Phinx\Migration\AbstractMigration;
|
||||||
|
|
||||||
|
final class EshopAddAdditional extends AbstractMigration
|
||||||
|
{
|
||||||
|
public function up(): void
|
||||||
|
{
|
||||||
|
if ($this->getEnvironment() == "thetool") {
|
||||||
|
$table = $this->table("WarehouseEShopOrder");
|
||||||
|
$table->addColumn("deliveryAddressAdditional", "string", ["limit" => 255, "null" => true]);
|
||||||
|
$table->save();;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public function down(): void
|
||||||
|
{
|
||||||
|
if ($this->getEnvironment() == "thetool") {
|
||||||
|
$table = $this->table("WarehouseEShopOrder");
|
||||||
|
$table->removeColumn("deliveryAddressAdditional");
|
||||||
|
$table->save();;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user