// We need to insert these outside of a transaction, because FULLTEXT indexing,
// which is needed for search, doesn't happen in transactions.
// We clean it up explcitly at the end.
$this->database()->table('discussions')->insert([
['id'=>1,'title'=>'lightsail in title','created_at'=>Carbon::now()->toDateTimeString(),'user_id'=>1,'comment_count'=>1],
['id'=>2,'title'=>'not in title','created_at'=>Carbon::now()->toDateTimeString(),'user_id'=>1,'comment_count'=>1],
]);
$this->database()->table('posts')->insert([
['id'=>1,'discussion_id'=>1,'created_at'=>Carbon::now()->toDateTimeString(),'user_id'=>1,'type'=>'comment','content'=>'<t><p>not in text</p></t>'],
['id'=>2,'discussion_id'=>2,'created_at'=>Carbon::now()->toDateTimeString(),'user_id'=>1,'type'=>'comment','content'=>'<t><p>lightsail in text</p></t>'],
]);
// We need to call these again, since we rolled back the transaction started by `::app()`.