Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit 8e83c33

Browse files
committed
ENH: refs #952. Use InnoDB as engine for password hash table
MyISAM is the default prior to mysql 5.5, and InnoDB is the only one that guarantees the rows are clustered by primary key
1 parent 5dd71f4 commit 8e83c33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/database/upgrade/3.2.12.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function mysql()
1919
$this->db->query("CREATE TABLE `password` (
2020
`hash` varchar(128) NOT NULL,
2121
PRIMARY KEY (`hash`)
22-
)");
22+
) ENGINE=InnoDB DEFAULT CHARSET=utf8");
2323
$this->_movePasswords();
2424

2525
$this->db->query("ALTER TABLE `user` DROP `password`");

0 commit comments

Comments
 (0)