@mikro-orm/better-sqlite 6.0.0-dev.26 → 6.0.0-dev.28

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.
@@ -107,8 +107,8 @@ class BetterSqliteConnection extends knex_1.AbstractSqlConnection {
107
107
  // no need for temp tables if we just add a column
108
108
  if (addColumnQuery) {
109
109
  const onUpdate = foreignInfo.onUpdate ? ` on update ${foreignInfo.onUpdate}` : '';
110
- const onDelete = foreignInfo.onDelete ? ` on delete ${foreignInfo.onDelete}` : '';
111
- addColumnQuery.sql += ` constraint ${keyName} references ${inTable} (${references})${onUpdate}${onDelete}`;
110
+ const deleteRule = foreignInfo.deleteRule ? ` on delete ${foreignInfo.deleteRule}` : '';
111
+ addColumnQuery.sql += ` constraint ${keyName} references ${inTable} (${references})${onUpdate}${deleteRule}`;
112
112
  return;
113
113
  }
114
114
  // eslint-disable-next-line @typescript-eslint/no-this-alias
package/index.mjs CHANGED
@@ -141,7 +141,7 @@ export const QueryOrderNumeric = mod.QueryOrderNumeric;
141
141
  export const QueryType = mod.QueryType;
142
142
  export const ReadOnlyException = mod.ReadOnlyException;
143
143
  export const Reference = mod.Reference;
144
- export const ReferenceType = mod.ReferenceType;
144
+ export const ReferenceKind = mod.ReferenceKind;
145
145
  export const ReflectMetadataProvider = mod.ReflectMetadataProvider;
146
146
  export const RequestContext = mod.RequestContext;
147
147
  export const SCALAR_TYPES = mod.SCALAR_TYPES;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikro-orm/better-sqlite",
3
- "version": "6.0.0-dev.26",
3
+ "version": "6.0.0-dev.28",
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
  "main": "index.js",
6
6
  "module": "index.mjs",
@@ -58,7 +58,7 @@
58
58
  "access": "public"
59
59
  },
60
60
  "dependencies": {
61
- "@mikro-orm/knex": "~6.0.0-dev.26",
61
+ "@mikro-orm/knex": "~6.0.0-dev.28",
62
62
  "better-sqlite3": "8.0.1",
63
63
  "fs-extra": "11.1.0",
64
64
  "sqlstring-sqlite": "0.1.1"
@@ -67,6 +67,6 @@
67
67
  "@mikro-orm/core": "^5.6.8"
68
68
  },
69
69
  "peerDependencies": {
70
- "@mikro-orm/core": "~6.0.0-dev.26"
70
+ "@mikro-orm/core": "~6.0.0-dev.28"
71
71
  }
72
72
  }