@petradb/lucid 1.2.1 → 1.4.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.
Files changed (2) hide show
  1. package/dist/index.js +0 -9
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -44,15 +44,6 @@ function patch() {
44
44
  };
45
45
  // PetraDB is an in-process engine — no read/write replicas, no dynamic
46
46
  // connection patching needed. Skip patchKnex for petradb connections.
47
- // 4. Default disableTransactions for migrations (PetraDB doesn't support DDL
48
- // inside transactions, same as SQLite)
49
- const originalConnect = Connection.prototype.connect;
50
- Connection.prototype.connect = function () {
51
- if (this.clientName === "petradb") {
52
- this.config.migrations = Object.assign({ disableTransactions: true }, this.config.migrations);
53
- }
54
- return originalConnect.call(this);
55
- };
56
47
  const originalSetupWriteConnection = Connection.prototype.setupWriteConnection;
57
48
  Connection.prototype.setupWriteConnection = function () {
58
49
  if (this.clientName === "petradb") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@petradb/lucid",
3
- "version": "1.2.1",
3
+ "version": "1.4.0",
4
4
  "description": "AdonisJS Lucid ORM driver for PetraDB",
5
5
  "type": "module",
6
6
  "exports": {
@@ -21,8 +21,8 @@
21
21
  },
22
22
  "peerDependencies": {
23
23
  "@adonisjs/lucid": ">=22.0.0",
24
- "@petradb/engine": ">=1.2.0",
25
- "@petradb/knex": ">=1.2.0"
24
+ "@petradb/engine": ">=1.4.0",
25
+ "@petradb/knex": ">=1.4.0"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@adonisjs/lucid": "^22.0.0",