]> git.mxchange.org Git - friendica.git/commitdiff
[database] Add user.legacy_password field
authorHypolite Petovan <mrpetovan@gmail.com>
Sun, 21 Jan 2018 03:24:58 +0000 (22:24 -0500)
committerHypolite Petovan <mrpetovan@gmail.com>
Sun, 21 Jan 2018 03:24:58 +0000 (22:24 -0500)
boot.php
database.sql
src/Database/DBStructure.php

index 4d2eac35a3e25638ca1cf3cf7a3877cfcee42238..eb3d4e973405383fb298c8ffd1ed9284feb9eb45 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -41,7 +41,7 @@ define('FRIENDICA_PLATFORM',     'Friendica');
 define('FRIENDICA_CODENAME',     'Asparagus');
 define('FRIENDICA_VERSION',      '3.6-dev');
 define('DFRN_PROTOCOL_VERSION',  '2.23');
-define('DB_UPDATE_VERSION',      1243);
+define('DB_UPDATE_VERSION',      1244);
 define('NEW_UPDATE_ROUTINE_VERSION', 1170);
 
 /**
index 054bcd9a178e216578dc0a62c333952bfa5d7505..dbd59ee63a3553ca2b66b0fc95c01f4335090f3d 100644 (file)
@@ -1,6 +1,6 @@
 -- ------------------------------------------
 -- Friendica 3.6-dev (Asparagus)
--- DB_UPDATE_VERSION 1243
+-- DB_UPDATE_VERSION 1244
 -- ------------------------------------------
 
 
@@ -1006,6 +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?',
        `nickname` varchar(255) NOT NULL DEFAULT '' COMMENT '',
        `email` varchar(255) NOT NULL DEFAULT '' COMMENT '',
        `openid` varchar(255) NOT NULL DEFAULT '' COMMENT '',
index cb69b49525cab017e7cd4717f558a6278599340c..9dd5e5a515e3885b2a36cc8eca36be40adcd47d2 100644 (file)
@@ -1708,6 +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?"],
                                                "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" => ""],