12345678910111213141516171819202122232425262728293031323334 |
- "use strict";
- exports.__esModule = true;
- var _inherits = require('inherits');
- var _inherits2 = _interopRequireDefault(_inherits);
- var _helpers = require('../../../helpers');
- var _columnbuilder = require('../../../schema/columnbuilder');
- var _columnbuilder2 = _interopRequireDefault(_columnbuilder);
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
- function ColumnBuilder_Redshift() {
- _columnbuilder2.default.apply(this, arguments);
- }
- (0, _inherits2.default)(ColumnBuilder_Redshift, _columnbuilder2.default);
- // primary needs to set not null on non-preexisting columns, or fail
- ColumnBuilder_Redshift.prototype.primary = function () {
- this.notNullable();
- return _columnbuilder2.default.prototype.primary.apply(this, arguments);
- };
- ColumnBuilder_Redshift.prototype.index = function () {
- (0, _helpers.warn)('Redshift does not support the creation of indexes.');
- return this;
- };
- exports.default = ColumnBuilder_Redshift;
- module.exports = exports['default'];
|