aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-03-01 13:42:22 -0800
committerfriendica <info@friendica.com>2013-03-01 13:42:22 -0800
commit0bdab225dbe869a7334c376cd81df8446f863cff (patch)
tree8bc5498c3400b21add94290a9e91601ea056cb98
parenta7efec2b512c7915e4d29963836a04ad76a68d57 (diff)
downloadvolse-hubzilla-0bdab225dbe869a7334c376cd81df8446f863cff.tar.gz
volse-hubzilla-0bdab225dbe869a7334c376cd81df8446f863cff.tar.bz2
volse-hubzilla-0bdab225dbe869a7334c376cd81df8446f863cff.zip
add account_external for linking to legacy authentication infrastructure (e.g. ldap, pam, AD, phpBB, Drupal, etc) - this field is not used by Red.
-rw-r--r--boot.php2
-rw-r--r--install/database.sql4
-rw-r--r--install/update.php12
-rw-r--r--version.inc2
4 files changed, 16 insertions, 4 deletions
diff --git a/boot.php b/boot.php
index e46c8cd48..6e12e1ae6 100644
--- a/boot.php
+++ b/boot.php
@@ -17,7 +17,7 @@ require_once('include/features.php');
define ( 'FRIENDICA_PLATFORM', 'Friendica Red');
define ( 'FRIENDICA_VERSION', trim(file_get_contents('version.inc')) . 'R');
define ( 'ZOT_REVISION', 1 );
-define ( 'DB_UPDATE_VERSION', 1031 );
+define ( 'DB_UPDATE_VERSION', 1032 );
define ( 'EOL', '<br />' . "\r\n" );
define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' );
diff --git a/install/database.sql b/install/database.sql
index 3dcbb7be0..31c5b441a 100644
--- a/install/database.sql
+++ b/install/database.sql
@@ -44,6 +44,7 @@ CREATE TABLE IF NOT EXISTS `account` (
`account_salt` char(32) NOT NULL DEFAULT '',
`account_password` 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_created` 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_lastlog` (`account_lastlog`),
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;
CREATE TABLE IF NOT EXISTS `addon` (
diff --git a/install/update.php b/install/update.php
index c40dd1982..944841c41 100644
--- a/install/update.php
+++ b/install/update.php
@@ -1,6 +1,6 @@
<?php
-define( 'UPDATE_VERSION' , 1031 );
+define( 'UPDATE_VERSION' , 1032 );
/**
*
@@ -387,3 +387,13 @@ KEY `issue_component` (`issue_component`)
return UPDATE_SUCCESS;
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;
+}
+
+
diff --git a/version.inc b/version.inc
index 5781ff2a2..083b5f139 100644
--- a/version.inc
+++ b/version.inc
@@ -1 +1 @@
-2013-02-28.238
+2013-03-01.239