UNPKG

@luminati-io/knex

Version:

A batteries-included SQL query & schema builder for PostgresSQL, MySQL, CockroachDB, MSSQL and SQLite3

23 lines (18 loc) 492 B
const ColumnBuilder = require('../../../schema/columnbuilder'); class ColumnBuilder_Redshift extends ColumnBuilder { constructor() { super(...arguments); } // primary needs to set not null on non-preexisting columns, or fail primary() { this.notNullable(); return super.primary(...arguments); } index() { this.client.logger.warn( 'Redshift does not support the creation of indexes.' ); return this; } } module.exports = ColumnBuilder_Redshift;