summaryrefslogtreecommitdiffstats
path: root/server/migrations.js
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2018-12-16 22:21:16 +0200
committerLauri Ojansivu <x@xet7.org>2018-12-16 22:21:16 +0200
commitf1ed6304a4c3bfcd1c778b0c43cafe6808829286 (patch)
tree5c2ecf6231e906c1dc54b6777b345281d14a9483 /server/migrations.js
parenta42d9871bd420ba0647a590ad2a131822455a905 (diff)
downloadwekan-f1ed6304a4c3bfcd1c778b0c43cafe6808829286.tar.gz
wekan-f1ed6304a4c3bfcd1c778b0c43cafe6808829286.tar.bz2
wekan-f1ed6304a4c3bfcd1c778b0c43cafe6808829286.zip
- Admin Panel / Layout / Custom HTML after <body> start, and Custom HTML before </body> end.
In progress, does not work yet. Thanks to xet7 !
Diffstat (limited to 'server/migrations.js')
-rw-r--r--server/migrations.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/server/migrations.js b/server/migrations.js
index 56d2858d..2512b40c 100644
--- a/server/migrations.js
+++ b/server/migrations.js
@@ -374,3 +374,27 @@ Migrations.add('add-hide-logo', () => {
},
}, noValidateMulti);
});
+
+Migrations.add('add-custom-html-after-body-start', () => {
+ Settings.update({
+ customHTMLafterBodyStart: {
+ $exists: false,
+ },
+ }, {
+ $set: {
+ customHTMLafterBodyStart:'',
+ },
+ }, noValidateMulti);
+});
+
+Migrations.add('add-custom-html-before-body-end', () => {
+ Settings.update({
+ customHTMLbeforeBodyEnd: {
+ $exists: false,
+ },
+ }, {
+ $set: {
+ customHTMLbeforeBodyEnd:'',
+ },
+ }, noValidateMulti);
+});