Merge branch 'spidev' into 'master'

Kalender Updates

See merge request fronk/thetool!900
This commit is contained in:
Daniel Spitzer
2025-01-14 17:57:08 +00:00
10 changed files with 1185 additions and 204 deletions
@@ -0,0 +1,37 @@
<?php
use Phinx\Migration\AbstractMigration;
final class CalendarTemplate extends AbstractMigration
{
public function up(): void
{
if ($this->getEnvironment() == "thetool") {
$table = $this->table("CalendarTemplate", ["signed" => true]);
$table->addColumn("event_type", "integer", ["null" => false, "default" => "0"]);
$table->addColumn("name", "text", ["null" => false]);
$table->addColumn("is_reminder", "integer", ["null" => false, "default" => "0"]);
$table->addColumn("text", "text", ["null" => true]);
$table->addColumn("create_by", "integer", ["null" => false]);
$table->addColumn("edit_by", "integer", ["null" => false]);
$table->addColumn("create", "integer", ["null" => false]);
$table->addColumn("edit", "integer", ["null" => false]);
$table->save();
}
if ($this->getEnvironment() == "addressdb") {
}
}
public function down(): void
{
if ($this->getEnvironment() == "thetool") {
$this->table("CalendarTemplate")->drop()->save();
}
if ($this->getEnvironment() == "addressdb") {
}
}
}
?>