Migrates categories table.