Kalender Updates

* Vorlagen können nun erstellt und editiert werden.
* neue Migration für CalendarTemplates
This commit is contained in:
Daniel Spitzer
2025-01-14 18:54:18 +01:00
parent 2099f28a58
commit 7c0c585b91
9 changed files with 790 additions and 134 deletions

View File

@@ -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") {
}
}
}
?>