Kalender Updates
* Vorlagen können nun erstellt und editiert werden. * neue Migration für CalendarTemplates
This commit is contained in:
37
db/migrations/20250114175252_calendar_template.php
Normal file
37
db/migrations/20250114175252_calendar_template.php
Normal 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") {
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user