From 4fb24d4ebba267309dc76f3107bd7cc891af6c17 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Mon, 22 Jan 2018 07:48:30 -0500 Subject: [PATCH] Make the user.legacy_password field boolean --- database.sql | 2 +- src/Database/DBStructure.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/database.sql b/database.sql index dbd59ee63..506e252ec 100644 --- a/database.sql +++ b/database.sql @@ -1006,7 +1006,7 @@ CREATE TABLE IF NOT EXISTS `user` ( `guid` varchar(64) NOT NULL DEFAULT '' COMMENT '', `username` varchar(255) NOT NULL DEFAULT '' COMMENT '', `password` varchar(255) NOT NULL DEFAULT '' COMMENT '', - `legacy_password` tinyint NOT NULL DEFAULT 0 COMMENT 'Is the password hash double-hashed?', + `legacy_password` boolean NOT NULL DEFAULT 0 COMMENT 'Is the password hash double-hashed?', `nickname` varchar(255) NOT NULL DEFAULT '' COMMENT '', `email` varchar(255) NOT NULL DEFAULT '' COMMENT '', `openid` varchar(255) NOT NULL DEFAULT '' COMMENT '', diff --git a/src/Database/DBStructure.php b/src/Database/DBStructure.php index 9dd5e5a51..b3eed0dd1 100644 --- a/src/Database/DBStructure.php +++ b/src/Database/DBStructure.php @@ -1708,7 +1708,7 @@ class DBStructure { "guid" => ["type" => "varchar(64)", "not null" => "1", "default" => "", "comment" => ""], "username" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""], "password" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""], - "legacy_password" => ["type" => "tinyint", "not null" => "1", "default" => "0", "comment" => "Is the password hash double-hashed?"], + "legacy_password" => ["type" => "boolean", "not null" => "1", "default" => "0", "comment" => "Is the password hash double-hashed?"], "nickname" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""], "email" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""], "openid" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""],