UNPKG

942 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3var tslib_1 = require("tslib");
4var PrimaryColumnCannotBeNullableError = /** @class */ (function (_super) {
5 tslib_1.__extends(PrimaryColumnCannotBeNullableError, _super);
6 function PrimaryColumnCannotBeNullableError(object, propertyName) {
7 var _this = _super.call(this) || this;
8 _this.name = "PrimaryColumnCannotBeNullableError";
9 Object.setPrototypeOf(_this, PrimaryColumnCannotBeNullableError.prototype);
10 _this.message = "Primary column " + object.constructor.name + "#" + propertyName + " cannot be nullable. " +
11 "Its not allowed for primary keys. Try to remove nullable option.";
12 return _this;
13 }
14 return PrimaryColumnCannotBeNullableError;
15}(Error));
16exports.PrimaryColumnCannotBeNullableError = PrimaryColumnCannotBeNullableError;
17
18//# sourceMappingURL=PrimaryColumnCannotBeNullableError.js.map