forked from GNUsocial/gnu-social
		
	[COMPONENT][Group][Entity] Useless URI column removed
Add table to Makefile backup
This commit is contained in:
		| @@ -45,8 +45,7 @@ class GroupMember extends Entity | ||||
|     // @codeCoverageIgnoreStart | ||||
|     private int $group_id; | ||||
|     private int $actor_id; | ||||
|     private int $roles   = ActorLocalRoles::VISITOR; | ||||
|     private ?string $uri = null; | ||||
|     private int $roles = ActorLocalRoles::VISITOR; | ||||
|     private DateTimeInterface $created; | ||||
|     private DateTimeInterface $modified; | ||||
|  | ||||
| @@ -83,17 +82,6 @@ class GroupMember extends Entity | ||||
|         return $this->roles; | ||||
|     } | ||||
|  | ||||
|     public function setUri(?string $uri): self | ||||
|     { | ||||
|         $this->uri = \is_null($uri) ? null : mb_substr($uri, 0, 191); | ||||
|         return $this; | ||||
|     } | ||||
|  | ||||
|     public function getUri(): ?string | ||||
|     { | ||||
|         return $this->uri; | ||||
|     } | ||||
|  | ||||
|     public function setCreated(DateTimeInterface $created): self | ||||
|     { | ||||
|         $this->created = $created; | ||||
| @@ -127,15 +115,11 @@ class GroupMember extends Entity | ||||
|                 'group_id' => ['type' => 'int', 'foreign key' => true, 'target' => 'Actor.id', 'multiplicity' => 'one to one', 'name' => 'group_member_group_id_fkey', 'not null' => true, 'description' => 'foreign key to group table'], | ||||
|                 'actor_id' => ['type' => 'int', 'foreign key' => true, 'target' => 'Actor.id', 'multiplicity' => 'one to one', 'name' => 'group_member_actor_id_fkey', 'not null' => true, 'description' => 'foreign key to actor table'], | ||||
|                 'roles'    => ['type' => 'int', 'not null' => true, 'default' => ActorLocalRoles::VISITOR,  'description' => 'Bitmap of permissions this actor has'], | ||||
|                 'uri'      => ['type' => 'varchar', 'length' => 191, 'description' => 'universal identifier'], | ||||
|                 'created'  => ['type' => 'datetime', 'not null' => true, 'default' => 'CURRENT_TIMESTAMP', 'description' => 'date this record was created'], | ||||
|                 'modified' => ['type' => 'timestamp', 'not null' => true, 'default' => 'CURRENT_TIMESTAMP', 'description' => 'date this record was modified'], | ||||
|             ], | ||||
|             'primary key' => ['group_id', 'actor_id'], | ||||
|             'unique keys' => [ | ||||
|                 'group_member_uri_key' => ['uri'], | ||||
|             ], | ||||
|             'indexes' => [ | ||||
|             'indexes'     => [ | ||||
|                 'group_member_actor_id_idx'         => ['actor_id'], | ||||
|                 'group_member_created_idx'          => ['created'], | ||||
|                 'group_member_actor_id_created_idx' => ['actor_id', 'created'], | ||||
|   | ||||
		Reference in New Issue
	
	Block a user