Merge branch 'spidev' into 'master'

Pop Update

See merge request fronk/thetool!1686
This commit is contained in:
Daniel Spitzer
2025-08-27 10:54:31 +00:00
7 changed files with 112 additions and 33 deletions
@@ -0,0 +1,31 @@
<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class PoprackModuleAddSide extends AbstractMigration
{
public function up(): void
{
if($this->getEnvironment() == "thetool") {
$table = $this->table("Poprackmodule");
$table->addColumn("side", "enum", ['values' => ['front', 'back'],'null' => false,'default' => 'front', "after" => "position"]);
$table->update();
}
if($this->getEnvironment() == "addressdb") {
}
}
public function down(): void
{
if($this->getEnvironment() == "thetool") {
$this->table("Poprackmodule")->removeColumn("side")->save();
}
if($this->getEnvironment() == "addressdb") {
}
}
}