};
Migration.prototype.addColumn = function(table, column, type) {
- return this.queryInterface
- .addColumn(table, column, type)
- .then(function(res) {
- logger.info('Added column %s to %s', column, table);
- })
- .catch(function(err) {
- logger.info(JSON.stringify(err));
- });
+ return this.queryInterface
+ .addColumn(table, column, type)
+ .then(function(res) {
+ logger.info('Added column %s to %s', column, table);
+ })
+ .catch(function(err) {
+ logger.info(JSON.stringify(err));
+ });
};
});
migration.addColumn('voice_queues', 'dialPrefix', {
- type: Sequelize.STRING,
- defaultValue: null
+ type: Sequelize.STRING,
+ defaultValue: null
});
},
down: function(queryInterface, Sequelize) {
var migration = new Migration(queryInterface);
}
-};
+};
\ No newline at end of file