knex/lib/dialects/oracle/schema/oracle-columnbuilder.js

19 lines
568 B
JavaScript
Raw Normal View History

const { inherits } = require('util');
const ColumnBuilder = require('../../../schema/columnbuilder');
2016-03-02 17:07:05 +01:00
const toArray = require('lodash/toArray');
2016-03-02 17:07:05 +01:00
function ColumnBuilder_Oracle() {
ColumnBuilder.apply(this, arguments);
}
inherits(ColumnBuilder_Oracle, ColumnBuilder);
// checkIn added to the builder to allow the column compiler to change the
// order via the modifiers ("check" must be after "default")
2020-04-19 00:40:23 +02:00
ColumnBuilder_Oracle.prototype.checkIn = function () {
2016-03-02 17:07:05 +01:00
this._modifiers.checkIn = toArray(arguments);
return this;
};
module.exports = ColumnBuilder_Oracle;