aboutsummaryrefslogtreecommitdiffstats
path: root/install/update.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-07-05 11:36:32 +0200
committerMario Vavti <mario@mariovavti.com>2017-07-05 11:36:32 +0200
commit80352dab5f33c691017b555fcf48323eb69b73bc (patch)
tree4be4f687d9a2d15265228d210a030e86963afba1 /install/update.php
parent00a49b42e4083e7156471105cb252263baff7f6e (diff)
downloadvolse-hubzilla-80352dab5f33c691017b555fcf48323eb69b73bc.tar.gz
volse-hubzilla-80352dab5f33c691017b555fcf48323eb69b73bc.tar.bz2
volse-hubzilla-80352dab5f33c691017b555fcf48323eb69b73bc.zip
use if not exists clause to not error if the index was already there
Diffstat (limited to 'install/update.php')
-rw-r--r--install/update.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/install/update.php b/install/update.php
index 1406f2d1b..d3a726f6b 100644
--- a/install/update.php
+++ b/install/update.php
@@ -2920,7 +2920,7 @@ function update_r1191() {
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;"
);
- $r14 = q("CREATE UNIQUE INDEX path_property ON propertystorage (path(600), name(100));");
+ $r14 = q("CREATE UNIQUE INDEX if not exists path_property ON propertystorage (path(600), name(100));");
$r15 = q("CREATE TABLE if not exists users (
id INTEGER UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT,