Woops, forgot auto_increment (comes with 'serial')

There are still some classes not ported (like Yammer import)
This commit is contained in:
Mikael Nordfeldth
2013-08-21 14:33:45 +02:00
parent 4fab7a9d8b
commit 40fe10e002
6 changed files with 8 additions and 8 deletions

View File

@@ -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'),

View File

@@ -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'),
),