Merge branch 'spidev' into 'master'

Calender Update

See merge request fronk/thetool!1386
This commit is contained in:
Daniel Spitzer
2025-05-25 16:21:28 +00:00
5 changed files with 130 additions and 65 deletions
@@ -0,0 +1,31 @@
<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class TimerecordingAddMicrosoftEventId extends AbstractMigration
{
public function up(): void
{
if($this->getEnvironment() == "thetool") {
$table = $this->table("Timerecording", ["signed" => true]);
$table->addColumn("microsoft_event_id", "string", ["null" => true, "after" => "completed"]);
$table->update();
}
if($this->getEnvironment() == "addressdb") {
}
}
public function down(): void
{
if($this->getEnvironment() == "thetool") {
$this->table("Timerecording")->removeColumn("microsoft_event_id")->save();
}
if($this->getEnvironment() == "addressdb") {
}
}
}