add account_external for linking to legacy authentication infrastructure (e.g. ldap, pam, AD, phpBB, Drupal, etc) - this field is not used by Red.

This commit is contained in:
friendica 2013-03-01 13:42:22 -08:00
parent a7efec2b51
commit 0bdab225db
4 changed files with 16 additions and 4 deletions

View File

@ -17,7 +17,7 @@ require_once('include/features.php');
define ( 'FRIENDICA_PLATFORM', 'Friendica Red'); define ( 'FRIENDICA_PLATFORM', 'Friendica Red');
define ( 'FRIENDICA_VERSION', trim(file_get_contents('version.inc')) . 'R'); define ( 'FRIENDICA_VERSION', trim(file_get_contents('version.inc')) . 'R');
define ( 'ZOT_REVISION', 1 ); define ( 'ZOT_REVISION', 1 );
define ( 'DB_UPDATE_VERSION', 1031 ); define ( 'DB_UPDATE_VERSION', 1032 );
define ( 'EOL', '<br />' . "\r\n" ); define ( 'EOL', '<br />' . "\r\n" );
define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' ); define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' );

View File

@ -44,6 +44,7 @@ CREATE TABLE IF NOT EXISTS `account` (
`account_salt` char(32) NOT NULL DEFAULT '', `account_salt` char(32) NOT NULL DEFAULT '',
`account_password` char(255) NOT NULL DEFAULT '', `account_password` char(255) NOT NULL DEFAULT '',
`account_email` char(255) NOT NULL DEFAULT '', `account_email` char(255) NOT NULL DEFAULT '',
`account_external` char(255) NOT NULL DEFAULT '',
`account_language` char(16) NOT NULL DEFAULT 'en', `account_language` char(16) NOT NULL DEFAULT 'en',
`account_created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `account_created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`account_lastlog` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `account_lastlog` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
@ -61,7 +62,8 @@ CREATE TABLE IF NOT EXISTS `account` (
KEY `account_roles` (`account_roles`), KEY `account_roles` (`account_roles`),
KEY `account_lastlog` (`account_lastlog`), KEY `account_lastlog` (`account_lastlog`),
KEY `account_expires` (`account_expires`), KEY `account_expires` (`account_expires`),
KEY `account_default_channel` (`account_default_channel`) KEY `account_default_channel` (`account_default_channel`),
KEY `account_external` (`account_external`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8; ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `addon` ( CREATE TABLE IF NOT EXISTS `addon` (

View File

@ -1,6 +1,6 @@
<?php <?php
define( 'UPDATE_VERSION' , 1031 ); define( 'UPDATE_VERSION' , 1032 );
/** /**
* *
@ -387,3 +387,13 @@ KEY `issue_component` (`issue_component`)
return UPDATE_SUCCESS; return UPDATE_SUCCESS;
return UPDATE_FAILED; return UPDATE_FAILED;
} }
function update_r1031() {
$r = q("ALTER TABLE `account` ADD `account_external` CHAR( 255 ) NOT NULL DEFAULT '' AFTER `account_email` ,
ADD INDEX ( `account_external` )");
if($r)
return UPDATE_SUCCESS;
return UPDATE_FAILED;
}

View File

@ -1 +1 @@
2013-02-28.238 2013-03-01.239