@mikro-orm/sql 7.1.1-dev.8 → 7.1.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikro-orm/sql",
3
- "version": "7.1.1-dev.8",
3
+ "version": "7.1.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",
@@ -50,10 +50,10 @@
50
50
  "kysely": "0.29.2"
51
51
  },
52
52
  "devDependencies": {
53
- "@mikro-orm/core": "^7.1.0"
53
+ "@mikro-orm/core": "^7.1.1"
54
54
  },
55
55
  "peerDependencies": {
56
- "@mikro-orm/core": "7.1.1-dev.8"
56
+ "@mikro-orm/core": "7.1.1"
57
57
  },
58
58
  "engines": {
59
59
  "node": ">= 22.17.0"
@@ -1025,6 +1025,7 @@ export class DatabaseTable {
1025
1025
  };
1026
1026
  const optional = [
1027
1027
  'expression',
1028
+ 'where',
1028
1029
  'type',
1029
1030
  'deferMode',
1030
1031
  'columns',
@@ -977,6 +977,9 @@ export class SchemaComparator {
977
977
  from.default.toString().startsWith('nextval(')) {
978
978
  return to.default == null || to.default.toLowerCase() === 'null';
979
979
  }
980
+ if (to.default == null || to.default.toLowerCase() === 'null') {
981
+ return false;
982
+ }
980
983
  if (to.mappedType instanceof BooleanType) {
981
984
  const defaultValueFrom = !['0', 'false', 'f', 'n', 'no', 'off'].includes('' + from.default);
982
985
  const defaultValueTo = !['0', 'false', 'f', 'n', 'no', 'off'].includes('' + to.default);