Initial commit
This commit is contained in:
22
node_modules/knex/lib/dialects/redshift/schema/redshift-columnbuilder.js
generated
vendored
Executable file
22
node_modules/knex/lib/dialects/redshift/schema/redshift-columnbuilder.js
generated
vendored
Executable file
@@ -0,0 +1,22 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user