After five month of hard work, we are proud to present the latest n98-magerun2 release. The codename of the release is Hoensbroek. The castle in the picture is next to the Hyvä company. It’s one of the bigger releases with a lot of community contributions. We have several first time Read more…
We deployed a new stable n98-magerun version with some internal changes which are great if you are developing custom database driven commands.
The new version contains also some minor features and uncritical bugfixes.
New Database Helper
In some cases it’s useful to run commands directly on your database. In the past it was usual to extend the class AbstractDatabaseCommand and call methods like _getConnection which returns a PDO Object.
We now ported all methods of this abstract class to a new console helper which can be called in command context.
It’s very easy to use the database functions.
Sometimes it’s useful to dump a production database and import them on a local developer workstation.
In this case we have some issue to solve.
A production database contains many critical privacy data like customer addresses, email, hashed password, orders
which can produce big trouble if a hacker or someone can access it.
For a development workstation it’s a good advice to exclude the data. In most cases a developer needs no customer data
to create a new module.
Magento produces many log data. Some tables grow up and can contain many millions of records.
An import of a database could run up to hours. This is unpractical and unwanted for development.
n98-magerun strip option
n98-magerun can help you. The database command comes with a handy strip option.
If you run n98-magerun with –help option you can see this: