From d8d02d6f447dbec690009340f78866a9db74fa28 Mon Sep 17 00:00:00 2001 From: Daniel Spitzer Date: Sun, 3 Nov 2024 18:14:43 +0100 Subject: [PATCH] Kalender * Nur Migration --- db/migrations/20241103170751_calendar.php | 40 +++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 db/migrations/20241103170751_calendar.php diff --git a/db/migrations/20241103170751_calendar.php b/db/migrations/20241103170751_calendar.php new file mode 100644 index 000000000..23abea59e --- /dev/null +++ b/db/migrations/20241103170751_calendar.php @@ -0,0 +1,40 @@ +getEnvironment() == "thetool") { + $table = $this->table("Calendar", ["signed" => true]); + $table->addColumn("user_id", "integer", ["null" => false]); + $table->addColumn("go_calendar_id", "integer", ["null" => false]); + $table->addColumn("microsoft_id", "text", ["null" => false]); + $table->addColumn("rights", "text", ["null" => true]); + $table->addColumn("colors", "text", ["null" => true]); + $table->addColumn("groups", "text", ["null" => true]); + $table->addColumn("subscription_id", "text", ["null" => true]); + $table->addColumn("expirationDateTime", "integer", ["null" => true]); + $table->addColumn("active", "integer", ["null" => false, "default" => "1"]); + $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("Calendar")->drop()->save(); + } + if ($this->getEnvironment() == "addressdb") { + } + } +}