tables renamed, auth_tokens and permissions

This commit is contained in:
Daniel Klabbers 2018-04-17 12:21:55 +02:00
parent 665ac178e9
commit 406be427ad
2 changed files with 4 additions and 3 deletions

View File

@ -15,14 +15,15 @@ use Flarum\Database\AbstractModel;
use Illuminate\Database\Eloquent\Builder;
/**
* @todo document database columns with @property
* @property int $group_id
* @property string $permission
*/
class Permission extends AbstractModel
{
/**
* {@inheritdoc}
*/
protected $table = 'permissions';
protected $table = 'groups_permissions';
/**
* Define the relationship with the group that this permission is for.

View File

@ -23,7 +23,7 @@ class AuthToken extends AbstractModel
/**
* {@inheritdoc}
*/
protected $table = 'auth_tokens';
protected $table = 'registration_tokens';
/**
* {@inheritdoc}