Zeiterfassung Fahrzeugverwaltung neue Features:

* KM-Stand History
* Journal
* Neue Felder
This commit is contained in:
Daniel Spitzer
2025-03-14 10:12:36 +01:00
parent c69d8b84d5
commit 7865db049b

View File

@@ -9,6 +9,7 @@ final class TimerecordingCarMilageHistoryAddDeleted extends AbstractMigration
{
if($this->getEnvironment() == "thetool") {
$table = $this->table("TimerecordingCarMileageHistory", ["signed" => true]);
$table->addColumn("mileage_timestamp", "integer", ["null" => true, 'default' => 0, "after" => "mileage"]);
$table->addColumn("deleted", "integer", ["null" => false, 'default' => 0, "after" => "mileage_timestamp"]);
$table->update();
}
@@ -21,6 +22,7 @@ final class TimerecordingCarMilageHistoryAddDeleted extends AbstractMigration
public function down(): void
{
if($this->getEnvironment() == "thetool") {
$this->table("TimerecordingCarMileageHistory")->removeColumn("mileage_timestamp")->save();
$this->table("TimerecordingCarMileageHistory")->removeColumn("deleted")->save();
}