aboutsummaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-09-13 10:30:08 +0200
committerMario Vavti <mario@mariovavti.com>2017-09-13 10:30:08 +0200
commit29b0ed87d61ae7c5fae5a43ad667cefce3938e25 (patch)
treed94df5802569f08b4b640a5763a2ea27b2d49743 /install
parent87ca60b0b128bf12b611146264159377baca71a3 (diff)
parent0e6d84e20731f173e489fe0d54b43c01266c0391 (diff)
downloadvolse-hubzilla-29b0ed87d61ae7c5fae5a43ad667cefce3938e25.tar.gz
volse-hubzilla-29b0ed87d61ae7c5fae5a43ad667cefce3938e25.tar.bz2
volse-hubzilla-29b0ed87d61ae7c5fae5a43ad667cefce3938e25.zip
Merge remote-tracking branch 'mike/master' into dev
Diffstat (limited to 'install')
-rw-r--r--install/update.php18
1 files changed, 17 insertions, 1 deletions
diff --git a/install/update.php b/install/update.php
index ce9a50913..8c9f83033 100644
--- a/install/update.php
+++ b/install/update.php
@@ -1,6 +1,6 @@
<?php
-define( 'UPDATE_VERSION' , 1194 );
+define( 'UPDATE_VERSION' , 1195 );
/**
*
@@ -2992,3 +2992,19 @@ function update_r1193() {
return UPDATE_SUCCESS;
return UPDATE_FAILED;
}
+
+
+function update_r1194() {
+ $r = q("select id, resource_id from item where resource_type = 'nwiki'");
+ if($r) {
+ foreach($r as $rv) {
+ $mimetype = get_iconfig($rv['id'],'wiki','mimeType');
+ q("update item set mimetype = '%s' where resource_type = 'nwikipage' and resource_id = '%s'",
+ dbesc($mimetype),
+ dbesc($rv['resource_id'])
+ );
+ }
+ }
+
+ return UPDATE_SUCCESS;
+} \ No newline at end of file