From efb2df04512e603b644b194c9ef73a72db70b6c0 Mon Sep 17 00:00:00 2001 From: Daniel Spitzer Date: Mon, 19 May 2025 20:21:31 +0200 Subject: [PATCH] =?UTF-8?q?Device=20Update=20*=20Backup=20Check=20Script?= =?UTF-8?q?=20noch=20mit=20meiner=20Email=20f=C3=BCr=20Live=20Test=20*=20B?= =?UTF-8?q?ackup=20Check=20bei=20Devices=20hinzugef=C3=BCgt=20*=20Migratio?= =?UTF-8?q?n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...0250519152455_device_add_check_backups.php | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 db/migrations/20250519152455_device_add_check_backups.php diff --git a/db/migrations/20250519152455_device_add_check_backups.php b/db/migrations/20250519152455_device_add_check_backups.php new file mode 100644 index 000000000..3a8419bba --- /dev/null +++ b/db/migrations/20250519152455_device_add_check_backups.php @@ -0,0 +1,33 @@ +getEnvironment() == "thetool") { + $table = $this->table("Device"); + $table->addColumn("backup_check", "integer", [ "default" => 1, "after" => "autobackup"]); + $table->update(); + } + + if($this->getEnvironment() == "addressdb") { + + } + } + + public function down(): void + { + if($this->getEnvironment() == "thetool") { + $table = $this->table('Pop'); + $table->removeColumn("backup_check"); + $table->update(); + } + + if($this->getEnvironment() == "addressdb") { + + } + } +}