File tree Expand file tree Collapse file tree 1 file changed +0
-35
lines changed Expand file tree Collapse file tree 1 file changed +0
-35
lines changed Original file line number Diff line number Diff line change @@ -51,41 +51,6 @@ function mixinMigration(PostgreSQL) {
51
51
} ) ;
52
52
} ;
53
53
54
- /*!
55
- * Check if the models exist
56
- * @param {String[] } [models] A model name or an array of model names. If not present, apply to all models
57
- * @param {Function } [cb] The callback function
58
- */
59
- PostgreSQL . prototype . isActual = function ( models , cb ) {
60
- var self = this ;
61
-
62
- if ( ( ! cb ) && ( 'function' === typeof models ) ) {
63
- cb = models ;
64
- models = undefined ;
65
- }
66
- // First argument is a model name
67
- if ( 'string' === typeof models ) {
68
- models = [ models ] ;
69
- }
70
-
71
- models = models || Object . keys ( this . _models ) ;
72
-
73
- var changes = [ ] ;
74
- async . each ( models , function ( model , done ) {
75
- self . getTableStatus ( model , function ( err , fields ) {
76
- changes = changes . concat ( self . getAddModifyColumns ( model , fields ) ) ;
77
- changes = changes . concat ( self . getDropColumns ( model , fields ) ) ;
78
- done ( err ) ;
79
- } ) ;
80
- } , function done ( err ) {
81
- if ( err ) {
82
- return cb && cb ( err ) ;
83
- }
84
- var actual = ( changes . length === 0 ) ;
85
- cb && cb ( null , actual ) ;
86
- } ) ;
87
- } ;
88
-
89
54
/*!
90
55
* Alter the table for the given model
91
56
* @param {String } model The model name
You can’t perform that action at this time.
0 commit comments