fix failing test - testGenerateDump

Cake standards expect true, false and null to be lowercase. The code was being generated correctly (lowercase), but was being asserted against an incorrect example (which used uppercase NULL)

Signed-off-by: Joshua Paling <joshua.paling@gmail.com>
Fix failing test - testRun

The test was failing due to the assertion on line 238, where it expected 'reset' => true to exist in the array - but there's no situation where that key/value is added, or needs to be added, in the code itself. Reset works, and asserting that 'version' => 0 is sufficient to test this.

Signed-off-by: Joshua Paling <joshua.paling@gmail.com>
refactor - break up 80+ line method

generate() method was 80+ lines and very hard to read. To break it up, I had to pass several params in by reference to each sub-method, which isn't ideal either, but still an improvement in terms of readability.

Signed-off-by: Joshua Paling <joshua.paling@gmail.com>
fix whitespace coding standards

Signed-off-by: Joshua Paling <joshua.paling@gmail.com>
refactor & implement test for 'create table' and 'drop table' from cli arguments

Signed-off-by: Joshua Paling <joshua.paling@gmail.com>
implement code & test for 'remove fields' from cli arguments

Signed-off-by: Joshua Paling <joshua.paling@gmail.com>
implement code & test for 'add fields' from cli arguments

Signed-off-by: Joshua Paling <joshua.paling@gmail.com>
Merge pull request #148 from joshuapaling/feature/migrations-from-cli

Get migrations from cli working and tested.