mirror of
https://github.com/flarum/framework.git
synced 2024-12-02 06:53:47 +08:00
Support table prefix
This commit is contained in:
parent
af3446085c
commit
99260f6e0a
|
@ -33,7 +33,7 @@ class AddTagGambit
|
||||||
return $query->select(app('flarum.db')->raw(1))
|
return $query->select(app('flarum.db')->raw(1))
|
||||||
->from('discussions_tags')
|
->from('discussions_tags')
|
||||||
->whereIn('tag_id', Tag::where('is_hidden', 1)->lists('id'))
|
->whereIn('tag_id', Tag::where('is_hidden', 1)->lists('id'))
|
||||||
->whereRaw('discussion_id = discussions.id');
|
->whereRaw('discussion_id = ' . app('flarum.db')->getQueryGrammar()->wrap('discussions.id'));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,7 +21,7 @@ class ConfigureDiscussionPermissions
|
||||||
return $query->select(app('flarum.db')->raw(1))
|
return $query->select(app('flarum.db')->raw(1))
|
||||||
->from('discussions_tags')
|
->from('discussions_tags')
|
||||||
->whereIn('tag_id', Tag::getNotVisibleTo($event->actor))
|
->whereIn('tag_id', Tag::getNotVisibleTo($event->actor))
|
||||||
->whereRaw('discussion_id = discussions.id');
|
->whereRaw('discussion_id = ' . app('flarum.db')->getQueryGrammar()->wrap('discussions.id'));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user