UNPKG

@nestjs-mod/flyway

Version:

Flyway - utility for working with database migrations (official site: https://flywaydb.org, preview version only for Postgres)

39 lines 1.59 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.FlywayConfiguration = void 0; const tslib_1 = require("tslib"); const common_1 = require("@nestjs-mod/common"); const class_validator_1 = require("class-validator"); let FlywayConfiguration = class FlywayConfiguration { }; exports.FlywayConfiguration = FlywayConfiguration; tslib_1.__decorate([ (0, common_1.ConfigModelProperty)({ description: 'Flyway feature name for generate prefix to environments keys', }), tslib_1.__metadata("design:type", String) ], FlywayConfiguration.prototype, "featureName", void 0); tslib_1.__decorate([ (0, common_1.ConfigModelProperty)({ description: 'Folder with migrations', }), (0, class_validator_1.IsNotEmpty)(), tslib_1.__metadata("design:type", String) ], FlywayConfiguration.prototype, "migrationsFolder", void 0); tslib_1.__decorate([ (0, common_1.ConfigModelProperty)({ description: 'Javascript config file for flyway (.flyway.js)', }), (0, class_validator_1.IsNotEmpty)(), tslib_1.__metadata("design:type", String) ], FlywayConfiguration.prototype, "configFile", void 0); tslib_1.__decorate([ (0, common_1.ConfigModelProperty)({ description: 'Application or library project.json-file (nx)', }), tslib_1.__metadata("design:type", String) ], FlywayConfiguration.prototype, "nxProjectJsonFile", void 0); exports.FlywayConfiguration = FlywayConfiguration = tslib_1.__decorate([ (0, common_1.ConfigModel)() ], FlywayConfiguration); //# sourceMappingURL=flyway.configuration.js.map