use if not exists clause to not error if the index was already there
This commit is contained in:
parent
00a49b42e4
commit
80352dab5f
@ -2920,7 +2920,7 @@ function update_r1191() {
|
|||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;"
|
) 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 (
|
$r15 = q("CREATE TABLE if not exists users (
|
||||||
id INTEGER UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT,
|
id INTEGER UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT,
|
||||||
|
Reference in New Issue
Block a user