tables renamed, auth_tokens and permissions

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

View File

@ -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.

View File

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