1.2.x to 1.3.x migration script converted to pure php script.

Coding standards

Coding standards