@arch-cadre/backup-module 1.0.14 → 1.0.16
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/dist/index.cjs +0 -1
- package/dist/index.mjs +1 -2
- package/package.json +7 -7
- package/src/index.ts +1 -1
package/dist/index.cjs
CHANGED
|
@@ -56,7 +56,6 @@ const backupModule = {
|
|
|
56
56
|
const backupPermNames = BACKUP_PERMISSIONS.map(p => p.name);
|
|
57
57
|
await _server.db.delete(_server.permissionsTable).where((0, _drizzleOrm.inArray)(_server.permissionsTable.name, backupPermNames));
|
|
58
58
|
console.log("[Backup] Permissions and mappings removed.");
|
|
59
|
-
await _server.db.execute(_drizzleOrm.sql.raw(`DROP TABLE IF EXISTS backups CASCADE`));
|
|
60
59
|
console.log("[Backup] Database tables removed.");
|
|
61
60
|
} catch (error) {
|
|
62
61
|
console.error("[Backup] Failed to remove tables or permissions:", error);
|
package/dist/index.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
getRoles,
|
|
6
6
|
permissionsTable
|
|
7
7
|
} from "@arch-cadre/core/server";
|
|
8
|
-
import { inArray
|
|
8
|
+
import { inArray } from "drizzle-orm";
|
|
9
9
|
import manifest from "../manifest.json";
|
|
10
10
|
import { navigation } from "./navigation.mjs";
|
|
11
11
|
import { privateRoutes } from "./routes.mjs";
|
|
@@ -48,7 +48,6 @@ const backupModule = {
|
|
|
48
48
|
const backupPermNames = BACKUP_PERMISSIONS.map((p) => p.name);
|
|
49
49
|
await db.delete(permissionsTable).where(inArray(permissionsTable.name, backupPermNames));
|
|
50
50
|
console.log("[Backup] Permissions and mappings removed.");
|
|
51
|
-
await db.execute(sql.raw(`DROP TABLE IF EXISTS backups CASCADE`));
|
|
52
51
|
console.log("[Backup] Database tables removed.");
|
|
53
52
|
} catch (error) {
|
|
54
53
|
console.error("[Backup] Failed to remove tables or permissions:", error);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arch-cadre/backup-module",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.16",
|
|
4
4
|
"description": "Backup module for Kryo framework",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"build": "unbuild"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@arch-cadre/modules": "^0.0.
|
|
30
|
-
"@arch-cadre/ui": "^0.0.
|
|
29
|
+
"@arch-cadre/modules": "^0.0.86",
|
|
30
|
+
"@arch-cadre/ui": "^0.0.60",
|
|
31
31
|
"@hookform/resolvers": "^3.10.0",
|
|
32
32
|
"date-fns": "^4.1.0",
|
|
33
33
|
"drizzle-orm": "1.0.0-beta.6-4414a19",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"zod": "^3.24.1"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@arch-cadre/core": "^0.0.
|
|
41
|
+
"@arch-cadre/core": "^0.0.60",
|
|
42
42
|
"@types/pg": "^8.16.0",
|
|
43
43
|
"@types/react": "^19",
|
|
44
44
|
"next": "16.1.1",
|
|
@@ -47,9 +47,9 @@
|
|
|
47
47
|
"unbuild": "^3.6.1"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@arch-cadre/core": "^0.0.
|
|
51
|
-
"@arch-cadre/intl": "^0.0.
|
|
52
|
-
"@arch-cadre/ui": "^0.0.
|
|
50
|
+
"@arch-cadre/core": "^0.0.60",
|
|
51
|
+
"@arch-cadre/intl": "^0.0.60",
|
|
52
|
+
"@arch-cadre/ui": "^0.0.60",
|
|
53
53
|
"next": ">=13.0.0",
|
|
54
54
|
"react": "^19.0.0"
|
|
55
55
|
},
|
package/src/index.ts
CHANGED
|
@@ -69,7 +69,7 @@ const backupModule: IModule = {
|
|
|
69
69
|
console.log("[Backup] Permissions and mappings removed.");
|
|
70
70
|
|
|
71
71
|
// 2. Drop tables
|
|
72
|
-
await db.execute(sql.raw(`DROP TABLE IF EXISTS backups CASCADE`));
|
|
72
|
+
// await db.execute(sql.raw(`DROP TABLE IF EXISTS backups CASCADE`));
|
|
73
73
|
console.log("[Backup] Database tables removed.");
|
|
74
74
|
} catch (error) {
|
|
75
75
|
console.error("[Backup] Failed to remove tables or permissions:", error);
|