@mikro-orm/migrations 7.2.0-dev.8 → 7.2.0
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/Migrator.js +6 -0
- package/README.md +1 -0
- package/package.json +4 -4
package/Migrator.js
CHANGED
|
@@ -247,6 +247,12 @@ export class Migrator extends AbstractMigrator {
|
|
|
247
247
|
if (tbl.triggers) {
|
|
248
248
|
table.setTriggers(tbl.triggers);
|
|
249
249
|
}
|
|
250
|
+
if (tbl.policies) {
|
|
251
|
+
// snapshot omits default roles; restore the array so the comparator can normalize them
|
|
252
|
+
table.setPolicies(tbl.policies.map((p) => ({ ...p, roles: p.roles ?? [] })));
|
|
253
|
+
}
|
|
254
|
+
table.rlsEnabled = !!tbl.rlsEnabled;
|
|
255
|
+
table.rlsForced = !!tbl.rlsForced;
|
|
250
256
|
const cols = tbl.columns;
|
|
251
257
|
Object.keys(cols).forEach(col => {
|
|
252
258
|
const column = { ...cols[col] };
|
package/README.md
CHANGED
|
@@ -24,6 +24,7 @@ npm install @mikro-orm/mysql # MySQL
|
|
|
24
24
|
npm install @mikro-orm/mariadb # MariaDB
|
|
25
25
|
npm install @mikro-orm/sqlite # SQLite
|
|
26
26
|
npm install @mikro-orm/libsql # libSQL / Turso
|
|
27
|
+
npm install @mikro-orm/sql-js # sql.js (in-memory SQLite in WASM)
|
|
27
28
|
npm install @mikro-orm/mongodb # MongoDB
|
|
28
29
|
npm install @mikro-orm/mssql # MS SQL Server
|
|
29
30
|
npm install @mikro-orm/oracledb # Oracle
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/migrations",
|
|
3
|
-
"version": "7.2.0
|
|
3
|
+
"version": "7.2.0",
|
|
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",
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
"copy": "node ../../scripts/copy.mjs"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@mikro-orm/sql": "7.2.0
|
|
50
|
+
"@mikro-orm/sql": "7.2.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@mikro-orm/core": "^7.
|
|
53
|
+
"@mikro-orm/core": "^7.2.0"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"@mikro-orm/core": "7.2.0
|
|
56
|
+
"@mikro-orm/core": "7.2.0"
|
|
57
57
|
},
|
|
58
58
|
"engines": {
|
|
59
59
|
"node": ">= 22.17.0"
|