Skip to content

Commit 537df3a

Browse files
author
Sakib Hasan
authored
Add checkFieldAndIndex for table status (#228)
1 parent 62dc458 commit 537df3a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/migration.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ var async = require('async');
1111
module.exports = mixinMigration;
1212

1313
function mixinMigration(PostgreSQL) {
14+
PostgreSQL.prototype.checkFieldAndIndex = function(fields, indexes) {
15+
if (fields && indexes)
16+
return true;
17+
return false;
18+
};
19+
1420
PostgreSQL.prototype.showFields = function(model, cb) {
1521
var sql = 'SELECT column_name AS "column", data_type AS "type", ' +
1622
'is_nullable AS "nullable", character_maximum_length as "length"' // , data_default AS "Default"'

0 commit comments

Comments
 (0)