mirror of
https://github.com/flarum/framework.git
synced 2024-12-05 00:43:39 +08:00
tables renamed, auth_tokens and permissions
This commit is contained in:
parent
2bd5e3bcc5
commit
0a1c05efbd
|
@ -15,14 +15,15 @@ use Flarum\Database\AbstractModel;
|
||||||
use Illuminate\Database\Eloquent\Builder;
|
use Illuminate\Database\Eloquent\Builder;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @todo document database columns with @property
|
* @property int $group_id
|
||||||
|
* @property string $permission
|
||||||
*/
|
*/
|
||||||
class Permission extends AbstractModel
|
class Permission extends AbstractModel
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
protected $table = 'permissions';
|
protected $table = 'groups_permissions';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Define the relationship with the group that this permission is for.
|
* Define the relationship with the group that this permission is for.
|
||||||
|
|
|
@ -23,7 +23,7 @@ class AuthToken extends AbstractModel
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
protected $table = 'auth_tokens';
|
protected $table = 'registration_tokens';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user