Zeiterfassung Fahrzeugverwaltung neue Features:
* KM-Stand History * Journal * Neue Felder
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user