]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Upgraded foreign_id column to handle new 64-bit Facebook user IDs.
authorZach Copley <zach@controlyourself.ca>
Thu, 28 May 2009 00:59:49 +0000 (17:59 -0700)
committerZach Copley <zach@controlyourself.ca>
Thu, 28 May 2009 00:59:49 +0000 (17:59 -0700)
See: http://developers.facebook.com/news.php?blog=1&story=226

classes/Foreign_link.php
db/laconica.sql

index 6065609512ce76e8461a3952b910e18cb94c50e1..c0b356ecedd10473e13447d7a14157b8388dc63f 100644 (file)
@@ -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
index 0b20bc172c2bdda55940fcdc82e97abad1f47064..a11e31692548449c4cabfd0629b589961ea577d4 100644 (file)
@@ -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',