MIAMI (CBSMiami) – Trayvon Martin’s school records will be released to George Zimmerman’s attorney.

Wednesday, the judge hearing Zimmerman’s second-degree murder trial signed an order authorizing subpoenas for Trayvon’s school records, something his family and prosecutors had fought to stop.

It’ll include not only the teen’s grades and accolades, but also all disciplinary actions taken against him, dating back to middle school.

Sanford police said Trayvon Martin was on a 10-day suspension from Dr. Michael M. Krop Senior High School in Miami for having an empty marijuana baggie, when he was shot and killed by Zimmerman in Sanford in February 2012. Zimmerman said he shot Martin in self-defense under the state’s “Stand Your Ground” law.

The state attorney’s office tried to keep the records away from the defense.

They argued the teen wasn’t armed at the time of the shooting and what he did at school is irrelevant to the case.

The judge ruled that attorney Mark O’Mara was entitled to the records as part of his investigation into the case. Zimmerman has pleaded not guilty to second-degree murder.

A trial is set for June, but a “Stand Your Ground” could be held by April.