@mikro-orm/sql 7.1.1-dev.7 → 7.1.1-dev.9
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.
|
|
3
|
+
"version": "7.1.1-dev.9",
|
|
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",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@mikro-orm/core": "^7.1.0"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"@mikro-orm/core": "7.1.1-dev.
|
|
56
|
+
"@mikro-orm/core": "7.1.1-dev.9"
|
|
57
57
|
},
|
|
58
58
|
"engines": {
|
|
59
59
|
"node": ">= 22.17.0"
|
|
@@ -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);
|