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

Coding standards

Coding standards
Merge pull request #956 from phaidon/replace-update

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