[DATABASE] Various table schema related fixes
This commit is contained in:
@@ -51,9 +51,9 @@ class Activitypub_pending_follow_requests extends Managed_DataObject
|
||||
{
|
||||
return [
|
||||
'fields' => [
|
||||
'local_profile_id' => ['type' => 'integer', 'not null' => true],
|
||||
'remote_profile_id' => ['type' => 'integer', 'not null' => true],
|
||||
'relation_id' => ['type' => 'serial', 'not null' => true],
|
||||
'local_profile_id' => ['type' => 'int', 'not null' => true],
|
||||
'remote_profile_id' => ['type' => 'int', 'not null' => true],
|
||||
'relation_id' => ['type' => 'serial', 'not null' => true],
|
||||
],
|
||||
'primary key' => ['relation_id'],
|
||||
'foreign keys' => [
|
||||
|
@@ -61,7 +61,7 @@ class Activitypub_profile extends Managed_DataObject
|
||||
return [
|
||||
'fields' => [
|
||||
'uri' => ['type' => 'text', 'not null' => true],
|
||||
'profile_id' => ['type' => 'integer'],
|
||||
'profile_id' => ['type' => 'int', 'not null' => true],
|
||||
'inboxuri' => ['type' => 'text', 'not null' => true],
|
||||
'sharedInboxuri' => ['type' => 'text'],
|
||||
'created' => ['type' => 'datetime', 'not null' => true, 'default' => 'CURRENT_TIMESTAMP', 'description' => 'date this record was created'],
|
||||
|
@@ -53,7 +53,7 @@ class Activitypub_rsa extends Managed_DataObject
|
||||
{
|
||||
return [
|
||||
'fields' => [
|
||||
'profile_id' => ['type' => 'integer'],
|
||||
'profile_id' => ['type' => 'int', 'not null' => true],
|
||||
'private_key' => ['type' => 'text'],
|
||||
'public_key' => ['type' => 'text', 'not null' => true],
|
||||
'created' => ['type' => 'datetime', 'not null' => true, 'default' => 'CURRENT_TIMESTAMP', 'description' => 'date this record was created'],
|
||||
|
Reference in New Issue
Block a user