mirror of
https://github.com/knex/knex.git
synced 2025-08-06 07:42:08 +00:00
23 lines
492 B
JavaScript
23 lines
492 B
JavaScript
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;
|