Refactored migration manager.
Fixed type limit SQL and added convenience methods to migration manager.
Fixed command line migration generator.