Merge branch 'spidev' into 'master'

Zeiterfassung Fahrzeugverwaltung neue Features:

See merge request fronk/thetool!1115
This commit is contained in:
Daniel Spitzer
2025-03-14 09:07:43 +00:00
6 changed files with 160 additions and 7 deletions
@@ -0,0 +1,31 @@
<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class TimerecordingCarJournalAddDeleted extends AbstractMigration
{
public function up(): void
{
if ($this->getEnvironment() == "thetool") {
$table = $this->table("TimerecordingCarJournal", ["signed" => true]);
$table->addColumn("deleted", "integer", ["null" => false, 'default' => 0, "after" => "timestamp"]);
$table->update();
}
if ($this->getEnvironment() == "addressdb") {
}
}
public function down(): void
{
if ($this->getEnvironment() == "thetool") {
$this->table("TimerecordingCarJournal")->removeColumn("deleted")->save();
}
if ($this->getEnvironment() == "addressdb") {
}
}
}
@@ -0,0 +1,31 @@
<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class TimerecordingCarMilageHistoryAddDeleted extends AbstractMigration
{
public function up(): void
{
if($this->getEnvironment() == "thetool") {
$table = $this->table("TimerecordingCarMileageHistory", ["signed" => true]);
$table->addColumn("deleted", "integer", ["null" => false, 'default' => 0, "after" => "mileage_timestamp"]);
$table->update();
}
if($this->getEnvironment() == "addressdb") {
}
}
public function down(): void
{
if($this->getEnvironment() == "thetool") {
$this->table("TimerecordingCarMileageHistory")->removeColumn("deleted")->save();
}
if($this->getEnvironment() == "addressdb") {
}
}
}