File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,8 @@ var SchemaManager = (function () {
18
18
* Schema Manager.
19
19
*
20
20
* @param schema: String, schema name.
21
- * @param config: Object, connection config.
21
+ * @param client: String, client name [e.g. "mysql"].
22
+ * @param connectionConfig: Object/String, either a config object a URL formatted string.
22
23
* @constructor
23
24
*/
24
25
function SchemaManager ( schema , client , connectionConfig ) {
@@ -64,7 +65,7 @@ var SchemaManager = (function () {
64
65
table . dateTime ( 'installation_time' ) ;
65
66
table . integer ( 'execution_time' ) ;
66
67
table . integer ( 'status' ) ;
67
- table . string ( 'reason' ) ;
68
+ table . text ( 'reason' ) ;
68
69
} ) ;
69
70
} ;
70
71
@@ -181,7 +182,7 @@ var SchemaManager = (function () {
181
182
status = 1 ;
182
183
reason = e . message ;
183
184
if ( _private . _logger . isLevelEnabled ( "DEBUG" ) ) {
184
- _private . _logger . error ( e ) ;
185
+ _private . _logger . error ( e . code ) ;
185
186
}
186
187
throw new Error ( util . format (
187
188
"Migration (%s/%s) failed. Run `mysql-migrate info` " +
You can’t perform that action at this time.
0 commit comments