Get rid of the "item" table, enhanced "post" tables
This commit is contained in:
parent
c918e83aa2
commit
ce6ad1aa73
23 changed files with 736 additions and 235 deletions
|
@ -23,6 +23,7 @@ use Friendica\Core\Protocol;
|
|||
use Friendica\Model\Contact;
|
||||
use Friendica\Model\Item;
|
||||
use Friendica\Model\Notification;
|
||||
use Friendica\Model\Verb;
|
||||
|
||||
return [
|
||||
// Empty these tables
|
||||
|
@ -373,6 +374,86 @@ return [
|
|||
'post-user-id' => 12,
|
||||
],
|
||||
],
|
||||
'post' => [
|
||||
[
|
||||
'uri-id' => 1,
|
||||
'parent-uri-id' => 1,
|
||||
'thr-parent-id' => 1,
|
||||
'gravity' => GRAVITY_PARENT,
|
||||
'network' => Protocol::DFRN,
|
||||
'owner-id' => 42,
|
||||
'author-id' => 42,
|
||||
'causer-id' => 42,
|
||||
'vid' => Verb::getID('http://activitystrea.ms/schema/1.0/post'),
|
||||
'private' => Item::PUBLIC,
|
||||
'visible' => 1,
|
||||
],
|
||||
[
|
||||
'uri-id' => 2,
|
||||
'parent-uri-id' => 1,
|
||||
'thr-parent-id' => 1,
|
||||
'gravity' => GRAVITY_COMMENT,
|
||||
'network' => Protocol::DFRN,
|
||||
'owner-id' => 42,
|
||||
'author-id' => 42,
|
||||
'causer-id' => 42,
|
||||
'vid' => Verb::getID('http://activitystrea.ms/schema/1.0/post'),
|
||||
'private' => Item::PUBLIC,
|
||||
'visible' => 1,
|
||||
],
|
||||
[
|
||||
'uri-id' => 3,
|
||||
'parent-uri-id' => 3,
|
||||
'thr-parent-id' => 3,
|
||||
'gravity' => GRAVITY_PARENT,
|
||||
'network' => Protocol::DFRN,
|
||||
'owner-id' => 42,
|
||||
'author-id' => 43,
|
||||
'causer-id' => 43,
|
||||
'vid' => Verb::getID('http://activitystrea.ms/schema/1.0/post'),
|
||||
'private' => Item::PUBLIC,
|
||||
'visible' => 1,
|
||||
],
|
||||
[
|
||||
'uri-id' => 4,
|
||||
'parent-uri-id' => 1,
|
||||
'thr-parent-id' => 1,
|
||||
'gravity' => GRAVITY_COMMENT,
|
||||
'network' => Protocol::DFRN,
|
||||
'owner-id' => 42,
|
||||
'author-id' => 44,
|
||||
'causer-id' => 44,
|
||||
'vid' => Verb::getID('http://activitystrea.ms/schema/1.0/post'),
|
||||
'private' => Item::PUBLIC,
|
||||
'visible' => 1,
|
||||
],
|
||||
[
|
||||
'uri-id' => 5,
|
||||
'parent-uri-id' => 1,
|
||||
'thr-parent-id' => 1,
|
||||
'gravity' => GRAVITY_COMMENT,
|
||||
'network' => Protocol::DFRN,
|
||||
'owner-id' => 42,
|
||||
'author-id' => 42,
|
||||
'causer-id' => 42,
|
||||
'vid' => Verb::getID('http://activitystrea.ms/schema/1.0/post'),
|
||||
'private' => Item::PUBLIC,
|
||||
'visible' => 1,
|
||||
],
|
||||
[
|
||||
'uri-id' => 6,
|
||||
'parent-uri-id' => 6,
|
||||
'thr-parent-id' => 6,
|
||||
'gravity' => GRAVITY_PARENT,
|
||||
'network' => Protocol::DFRN,
|
||||
'owner-id' => 42,
|
||||
'author-id' => 44,
|
||||
'causer-id' => 44,
|
||||
'vid' => Verb::getID('http://activitystrea.ms/schema/1.0/post'),
|
||||
'private' => Item::PUBLIC,
|
||||
'visible' => 1,
|
||||
],
|
||||
],
|
||||
'item' => [
|
||||
[
|
||||
'id' => 1,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue