Support table prefix

This commit is contained in:
Toby Zerner 2015-08-14 12:56:21 +09:30
parent af3446085c
commit 99260f6e0a
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ class AddTagGambit
return $query->select(app('flarum.db')->raw(1))
->from('discussions_tags')
->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'));
});
}
}

View File

@ -21,7 +21,7 @@ class ConfigureDiscussionPermissions
return $query->select(app('flarum.db')->raw(1))
->from('discussions_tags')
->whereIn('tag_id', Tag::getNotVisibleTo($event->actor))
->whereRaw('discussion_id = discussions.id');
->whereRaw('discussion_id = ' . app('flarum.db')->getQueryGrammar()->wrap('discussions.id'));
});
}
}