aboutsummaryrefslogtreecommitdiff
path: root/db/migrations/6.0.18_tic_4529.php
diff options
context:
space:
mode:
authorMurtaza Sultani <sultani@data-quest.de>2024-09-17 16:40:49 +0200
committerMurtaza Sultani <sultani@data-quest.de>2024-09-17 16:42:23 +0200
commita2f4ef7447796593d1473d5938ba81348402c7e3 (patch)
treee0db8af7082a8df0f2302e0d80cc436ef7107c85 /db/migrations/6.0.18_tic_4529.php
parent61127f8b1a7190c2ab7254d3ca3a1ba48c2019c9 (diff)
Update migration numberissue-4529
Diffstat (limited to 'db/migrations/6.0.18_tic_4529.php')
-rw-r--r--db/migrations/6.0.18_tic_4529.php35
1 files changed, 35 insertions, 0 deletions
diff --git a/db/migrations/6.0.18_tic_4529.php b/db/migrations/6.0.18_tic_4529.php
new file mode 100644
index 0000000..dac40dd
--- /dev/null
+++ b/db/migrations/6.0.18_tic_4529.php
@@ -0,0 +1,35 @@
+<?php
+
+final class Tic4529 extends Migration
+{
+ public function description()
+ {
+ return 'Delete MAIL_USE_SUBJECT_PREFIX and add MAIL_SUBJECT_PREFIX';
+ }
+
+ public function up()
+ {
+ Config::get()->delete("MAIL_USE_SUBJECT_PREFIX");
+
+ Config::get()->create("MAIL_SUBJECT_PREFIX", array(
+ 'value' => "[Stud.IP]",
+ 'type' => "string",
+ 'range' => "global",
+ 'section' => "global",
+ 'description' => "Stellt dem Titel von per Mail versandten Nachrichten, wenn UNI_NAME_CLEAN leer ist."
+ ));
+ }
+
+ public function down()
+ {
+ Config::get()->delete("MAIL_SUBJECT_PREFIX");
+
+ Config::get()->create("MAIL_USE_SUBJECT_PREFIX", array(
+ 'value' => "1",
+ 'type' => "boolean",
+ 'range' => "global",
+ 'section' => "global",
+ 'description' => "Stellt dem Titel von per Mail versandten Nachrichten den Wert von UNI_NAME_CLEAN voran."
+ ));
+ }
+}