22 lines
535 B
PHP
22 lines
535 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
use Phinx\Migration\AbstractMigration;
|
|
|
|
final class RenameLagerbewegungToMovement extends AbstractMigration
|
|
{
|
|
public function up(): void
|
|
{
|
|
if ($this->getEnvironment() == "thetool") {
|
|
$this->table('WarehouseLagerbewegung')->rename('WarehouseMovement')->save();
|
|
}
|
|
}
|
|
|
|
public function down(): void
|
|
{
|
|
if ($this->getEnvironment() == "thetool") {
|
|
$this->table('WarehouseMovement')->rename('WarehouseLagerbewegung')->save();
|
|
}
|
|
}
|
|
}
|