Skip to content

Commit 034ea42

Browse files
committed
(sql) make unique index repeatable
1 parent d31f1f8 commit 034ea42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

db/upgrade-10.0.0-10.1.0.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ SET STATEMENT sql_mode='NO_AUTO_VALUE_ON_ZERO' FOR
5656
INSERT IGNORE INTO `tenant` VALUES (0, 'global', NULL, NULL);
5757

5858
\! echo "PIDs should be unique in the password table"
59-
CREATE UNIQUE INDEX `pid_password_unique` ON password(pid);
59+
CREATE UNIQUE INDEX IF NOT EXISTS `pid_password_unique` ON password(pid);
6060

6161
\! echo "Incrementing PacketFence schema version...";
6262
INSERT IGNORE INTO pf_version (id, version) VALUES (@VERSION_INT, CONCAT_WS('.', @MAJOR_VERSION, @MINOR_VERSION, @SUBMINOR_VERSION));

0 commit comments

Comments
 (0)