summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZach Copley <zach@controlyourself.ca>2009-05-27 17:59:49 -0700
committerZach Copley <zach@controlyourself.ca>2009-05-27 17:59:49 -0700
commit3d13a44b66e254f88a7c2aa36190fa8e9df8fec3 (patch)
tree2b525cfe457128c5681eb6971f21e1d1629dc72b
parent1e9c5b52b4d816b701ee4e9da1b27c1f1b9cbf31 (diff)
Upgraded foreign_id column to handle new 64-bit Facebook user IDs.
See: http://developers.facebook.com/news.php?blog=1&story=226
-rw-r--r--classes/Foreign_link.php2
-rw-r--r--db/laconica.sql2
2 files changed, 2 insertions, 2 deletions
diff --git a/classes/Foreign_link.php b/classes/Foreign_link.php
index 606560951..c0b356ece 100644
--- a/classes/Foreign_link.php
+++ b/classes/Foreign_link.php
@@ -11,7 +11,7 @@ class Foreign_link extends Memcached_DataObject
public $__table = 'foreign_link'; // table name
public $user_id; // int(4) primary_key not_null
- public $foreign_id; // int(4) primary_key not_null
+ public $foreign_id; // bigint(8) primary_key not_null unsigned
public $service; // int(4) primary_key not_null
public $credentials; // varchar(255)
public $noticesync; // tinyint(1) not_null default_1
diff --git a/db/laconica.sql b/db/laconica.sql
index 0b20bc172..a11e31692 100644
--- a/db/laconica.sql
+++ b/db/laconica.sql
@@ -285,7 +285,7 @@ create table foreign_user (
create table foreign_link (
user_id int comment 'link to user on this system, if exists' references user (id),
- foreign_id int comment 'link ' references foreign_user(id),
+ foreign_id bigint unsigned comment 'link to user on foreign service, if exists' references foreign_user(id),
service int not null comment 'foreign key to service' references foreign_service(id),
credentials varchar(255) comment 'authc credentials, typically a password',
noticesync tinyint not null default 1 comment 'notice synchronization, bit 1 = sync outgoing, bit 2 = sync incoming, bit 3 = filter local replies',