@mikro-orm/core 7.1.3-dev.0 → 7.1.3-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/utils/Configuration.d.ts +14 -0
- package/utils/Configuration.js +2 -0
- package/utils/Utils.js +1 -1
- package/utils/env-vars.js +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/core",
|
|
3
|
-
"version": "7.1.3-dev.
|
|
3
|
+
"version": "7.1.3-dev.1",
|
|
4
4
|
"description": "TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, PostgreSQL and SQLite databases as well as usage with vanilla JavaScript.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"data-mapper",
|
package/utils/Configuration.d.ts
CHANGED
|
@@ -814,6 +814,20 @@ export interface Options<Driver extends IDatabaseDriver = IDatabaseDriver, EM ex
|
|
|
814
814
|
* @default []
|
|
815
815
|
*/
|
|
816
816
|
ignoreSchema?: string[];
|
|
817
|
+
/**
|
|
818
|
+
* Leave database triggers unmanaged. Declared triggers are still created, but existing triggers are never
|
|
819
|
+
* dropped or altered based on the entity metadata — use this to protect hand-written triggers from being
|
|
820
|
+
* removed when they are not mirrored in the entity definitions.
|
|
821
|
+
* @default false
|
|
822
|
+
*/
|
|
823
|
+
ignoreTriggers?: boolean;
|
|
824
|
+
/**
|
|
825
|
+
* Leave database stored routines (functions/procedures) unmanaged. New routines are still created, but existing
|
|
826
|
+
* routines are never dropped or altered based on the entity metadata — use this to safely adopt routine support
|
|
827
|
+
* without having pre-existing, hand-written routines removed when they are not mirrored in your metadata.
|
|
828
|
+
* @default false
|
|
829
|
+
*/
|
|
830
|
+
ignoreRoutines?: boolean;
|
|
817
831
|
/**
|
|
818
832
|
* Table names or patterns to skip during schema generation.
|
|
819
833
|
* @default []
|
package/utils/Configuration.js
CHANGED
package/utils/Utils.js
CHANGED
|
@@ -141,7 +141,7 @@ export function parseJsonSafe(value) {
|
|
|
141
141
|
/** Collection of general-purpose utility methods used throughout the ORM. */
|
|
142
142
|
export class Utils {
|
|
143
143
|
static PK_SEPARATOR = '~~~';
|
|
144
|
-
static #ORM_VERSION = '7.1.3-dev.
|
|
144
|
+
static #ORM_VERSION = '7.1.3-dev.1';
|
|
145
145
|
/**
|
|
146
146
|
* Checks if the argument is instance of `Object`. Returns false for arrays.
|
|
147
147
|
*/
|
package/utils/env-vars.js
CHANGED
|
@@ -85,6 +85,8 @@ export function loadEnvironmentVars() {
|
|
|
85
85
|
const read3 = read.bind(null, ret.schemaGenerator, 'MIKRO_ORM_SCHEMA_GENERATOR_');
|
|
86
86
|
read3('disableForeignKeys', bool);
|
|
87
87
|
read3('createForeignKeyConstraints', bool);
|
|
88
|
+
read3('ignoreTriggers', bool);
|
|
89
|
+
read3('ignoreRoutines', bool);
|
|
88
90
|
cleanup(ret, 'schemaGenerator');
|
|
89
91
|
ret.seeder = {};
|
|
90
92
|
const read4 = read.bind(null, ret.seeder, 'MIKRO_ORM_SEEDER_');
|