Merge branch 'spidev' into 'master'

Pop Updates

See merge request fronk/thetool!1953
This commit is contained in:
Daniel Spitzer
2025-12-14 19:00:42 +00:00
6 changed files with 79 additions and 11 deletions

View File

@@ -0,0 +1,33 @@
<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class AddPopFieldCategory extends AbstractMigration
{
public function up(): void
{
if($this->getEnvironment() == "thetool") {
$timerecordingCategory = $this->table("Pop");
$timerecordingCategory->addColumn("category", "integer", ["null" => false, "default" => 1, "after" => "name"]);
$timerecordingCategory->update();
}
if($this->getEnvironment() == "addressdb") {
}
}
public function down(): void
{
if($this->getEnvironment() == "thetool") {
$table = $this->table('Pop');
$table->removeColumn("category");
$table->update();
}
if($this->getEnvironment() == "addressdb") {
}
}
}