Feature/warehouse improvements
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<?php /** @noinspection ALL */
|
||||
declare(strict_types=1);
|
||||
|
||||
use Phinx\Migration\AbstractMigration;
|
||||
|
||||
final class WarehouseAddEShopHide extends AbstractMigration {
|
||||
public function up(): void {
|
||||
if ($this->getEnvironment() == "thetool") {
|
||||
$WarehouseArticle = $this->table("WarehouseArticle");
|
||||
$WarehouseArticle->addColumn("isEShopHide", "integer", ["null" => false]);
|
||||
$WarehouseArticle->update();
|
||||
}
|
||||
}
|
||||
|
||||
public function down(): void {
|
||||
if ($this->getEnvironment() == "thetool") {
|
||||
$WarehouseArticle = $this->table("WarehouseArticle");
|
||||
$WarehouseArticle->removeColumn("isEShopHide");
|
||||
$WarehouseArticle->update();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user