aboutsummaryrefslogtreecommitdiff
path: root/db/migrations/6.0.18_tic_4529.php
diff options
context:
space:
mode:
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."
+ ));
+ }
+}