]> git.mxchange.org Git - friendica.git/commitdiff
Make the user.legacy_password field boolean
authorHypolite Petovan <mrpetovan@gmail.com>
Mon, 22 Jan 2018 12:48:30 +0000 (07:48 -0500)
committerHypolite Petovan <mrpetovan@gmail.com>
Mon, 22 Jan 2018 12:48:30 +0000 (07:48 -0500)
database.sql
src/Database/DBStructure.php

index dbd59ee63a3553ca2b66b0fc95c01f4335090f3d..506e252ecbd17ca255186548d8b653e6b4ae304d 100644 (file)
@@ -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 '',
index 9dd5e5a515e3885b2a36cc8eca36be40adcd47d2..b3eed0dd1b14076907f18a5b74405a571add9022 100644 (file)
@@ -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" => ""],