mirror of
https://github.com/flarum/core.git
synced 2025-10-13 16:05:05 +02:00
decided to leave the posts.discussion_id foreign key constraint to discussions out for now
This commit is contained in:
@@ -400,7 +400,7 @@ class Discussion extends AbstractModel
|
||||
*/
|
||||
public function readers()
|
||||
{
|
||||
return $this->belongsToMany(User::class, 'discussions_users');
|
||||
return $this->belongsToMany(User::class);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -121,7 +121,7 @@ class Group extends AbstractModel
|
||||
*/
|
||||
public function users()
|
||||
{
|
||||
return $this->belongsToMany(User::class, 'users_groups');
|
||||
return $this->belongsToMany(User::class);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -23,7 +23,7 @@ class Permission extends AbstractModel
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected $table = 'groups_permissions';
|
||||
protected $table = 'group_permission';
|
||||
|
||||
/**
|
||||
* Define the relationship with the group that this permission is for.
|
||||
|
Reference in New Issue
Block a user