fix posts table and migrations