mirror of
https://github.com/flarum/core.git
synced 2025-08-01 22:20:21 +02:00
fix prefix failing in tests
This commit is contained in:
committed by
Daniël Klabbers
parent
65dd37278b
commit
6a65993ea5
@@ -99,7 +99,7 @@ class Post extends AbstractModel
|
|||||||
$post->number = new Expression('('.$db
|
$post->number = new Expression('('.$db
|
||||||
->table('posts', 'pn')
|
->table('posts', 'pn')
|
||||||
->whereRaw('pn.discussion_id = '.intval($post->discussion_id))
|
->whereRaw('pn.discussion_id = '.intval($post->discussion_id))
|
||||||
->select($db->raw('max(pn.number) + 1'))
|
->select($db->raw('max('. $db->getTablePrefix() .'pn.number) + 1'))
|
||||||
->toSql()
|
->toSql()
|
||||||
.')');
|
.')');
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user