const inherits = require('inherits'); const ColumnBuilder = require('../../../schema/columnbuilder'); function ColumnBuilder_Redshift() { ColumnBuilder.apply(this, arguments); } inherits(ColumnBuilder_Redshift, ColumnBuilder); // primary needs to set not null on non-preexisting columns, or fail ColumnBuilder_Redshift.prototype.primary = function() { this.notNullable(); return ColumnBuilder.prototype.primary.apply(this, arguments); }; ColumnBuilder_Redshift.prototype.index = function() { this.client.logger.warn('Redshift does not support the creation of indexes.'); return this; }; module.exports = ColumnBuilder_Redshift;