Merge branch 'spidev' into 'master'

Device Update

See merge request fronk/thetool!1365
This commit is contained in:
Daniel Spitzer
2025-05-19 18:21:49 +00:00

View File

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