forked from GNUsocial/gnu-social
Woops, forgot auto_increment (comes with 'serial')
There are still some classes not ported (like Yammer import)
This commit is contained in:
@@ -47,7 +47,7 @@ require_once INSTALLDIR . '/classes/Memcached_DataObject.php';
|
||||
class Group_message extends Managed_DataObject
|
||||
{
|
||||
public $__table = 'group_message'; // table name
|
||||
public $id; // varchar(36) primary_key not_null
|
||||
public $id; // char(36) primary_key not_null
|
||||
public $uri; // varchar(255)
|
||||
public $from_profile; // int
|
||||
public $to_group; // int
|
||||
@@ -61,7 +61,7 @@ class Group_message extends Managed_DataObject
|
||||
{
|
||||
return array(
|
||||
'fields' => array(
|
||||
'id' => array('type' => 'varchar', 'not null' => true, 'length' => 36, 'description' => 'message uuid'),
|
||||
'id' => array('type' => 'char', 'not null' => true, 'length' => 36, 'description' => 'message uuid'),
|
||||
'uri' => array('type' => 'varchar', 'not null' => true, 'length' => 255, 'description' => 'message uri'),
|
||||
'url' => array('type' => 'varchar', 'not null' => true, 'length' => 255, 'description' => 'representation url'),
|
||||
'from_profile' => array('type' => 'int', 'not null' => true, 'description' => 'sending profile ID'),
|
||||
|
@@ -57,7 +57,7 @@ class Group_message_profile extends Managed_DataObject
|
||||
return array(
|
||||
'fields' => array(
|
||||
'to_profile' => array('type' => 'int', 'not null' => true, 'description' => 'id of group direct message'),
|
||||
'group_message_id' => array('type' => 'varchar', 'not null' => true, 'length' => 36, 'description' => 'group message uuid'),
|
||||
'group_message_id' => array('type' => 'char', 'not null' => true, 'length' => 36, 'description' => 'related group message uuid'),
|
||||
'created' => array('type' => 'datetime', 'not null' => true, 'description' => 'date this record was created'),
|
||||
'modified' => array('type' => 'timestamp', 'not null' => true, 'description' => 'date this record was modified'),
|
||||
),
|
||||
|
@@ -20,7 +20,7 @@ class Irc_waiting_message extends Managed_DataObject {
|
||||
{
|
||||
return array(
|
||||
'fields' => array(
|
||||
'id' => array('type' => 'int', 'not null' => true, 'description' => 'Unique ID for entry'),
|
||||
'id' => array('type' => 'serial', 'not null' => true, 'description' => 'Unique ID for entry'),
|
||||
'data' => array('type' => 'blob', 'not null' => true, 'description' => 'data blob'),
|
||||
'prioritise' => array('type' => 'int', 'size' => 'tiny', 'description' => 'tinyint priority value'),
|
||||
'attempts' => array('type' => 'int', 'not null' => true, 'description' => 'attempts count'),
|
||||
|
@@ -18,7 +18,7 @@ class Msn_waiting_message extends Managed_DataObject {
|
||||
{
|
||||
return array(
|
||||
'fields' => array(
|
||||
'id' => array('type' => 'int', 'not null' => true, 'description' => 'Unique ID for entry'),
|
||||
'id' => array('type' => 'serial', 'not null' => true, 'description' => 'Unique ID for entry'),
|
||||
'screenname' => array('type' => 'varchar', 'length' => 255, 'description' => 'from screenname'),
|
||||
'message' => array('type' => 'text', 'not null' => true, 'description' => 'MSN message text'),
|
||||
'claimed' => array('type' => 'datetime', 'description' => 'date this irc message was claimed'),
|
||||
|
@@ -82,7 +82,7 @@ class FeedSub extends Managed_DataObject
|
||||
{
|
||||
return array(
|
||||
'fields' => array(
|
||||
'id' => array('type' => 'int', 'not null' => true, 'description' => 'FeedSub local unique id'),
|
||||
'id' => array('type' => 'serial', 'not null' => true, 'description' => 'FeedSub local unique id'),
|
||||
'uri' => array('type' => 'varchar', 'not null' => true, 'length' => 255, 'description' => 'FeedSub uri'),
|
||||
'huburi' => array('type' => 'text', 'description' => 'FeedSub hub-uri'),
|
||||
'verify_token' => array('type' => 'text', 'description' => 'FeedSub verify-token'),
|
||||
|
Reference in New Issue
Block a user