ante-erp-cli 1.6.14 → 1.7.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/package.json
CHANGED
package/src/utils/postgres.js
CHANGED
|
@@ -87,7 +87,7 @@ export async function testConnection(connectionInfo, composeFile = null) {
|
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
dockerArgs.push(
|
|
90
|
-
'postgres:
|
|
90
|
+
'postgres:17-alpine',
|
|
91
91
|
'psql',
|
|
92
92
|
'-h', testHost,
|
|
93
93
|
'-p', port,
|
|
@@ -135,7 +135,7 @@ export async function dumpDatabase(connectionInfo, outputFile) {
|
|
|
135
135
|
'--rm',
|
|
136
136
|
'-e', `PGPASSWORD=${password}`,
|
|
137
137
|
'-v', `${absoluteBackupDir}:/backups`,
|
|
138
|
-
'postgres:
|
|
138
|
+
'postgres:17-alpine',
|
|
139
139
|
'pg_dump',
|
|
140
140
|
'-h', host,
|
|
141
141
|
'-p', port,
|
|
@@ -300,7 +300,7 @@ export async function restoreDatabase(dumpFile, connectionInfo, dropSchema = tru
|
|
|
300
300
|
}
|
|
301
301
|
|
|
302
302
|
dockerArgs.push(
|
|
303
|
-
'postgres:
|
|
303
|
+
'postgres:17-alpine',
|
|
304
304
|
'psql',
|
|
305
305
|
'-h', psqlHost,
|
|
306
306
|
'-p', port,
|
|
@@ -327,7 +327,7 @@ export async function restoreDatabase(dumpFile, connectionInfo, dropSchema = tru
|
|
|
327
327
|
}
|
|
328
328
|
|
|
329
329
|
restoreArgs.push(
|
|
330
|
-
'postgres:
|
|
330
|
+
'postgres:17-alpine',
|
|
331
331
|
'pg_restore',
|
|
332
332
|
'-h', restoreHost,
|
|
333
333
|
'-p', port,
|
|
@@ -473,7 +473,7 @@ export async function disableRLS(connectionInfo, composeFile = null) {
|
|
|
473
473
|
}
|
|
474
474
|
|
|
475
475
|
dockerArgs.push(
|
|
476
|
-
'postgres:
|
|
476
|
+
'postgres:17-alpine',
|
|
477
477
|
'psql',
|
|
478
478
|
'-h', psqlHost,
|
|
479
479
|
'-p', port,
|
|
@@ -558,7 +558,7 @@ export async function enableRLS(connectionInfo, composeFile = null) {
|
|
|
558
558
|
}
|
|
559
559
|
|
|
560
560
|
dockerArgs.push(
|
|
561
|
-
'postgres:
|
|
561
|
+
'postgres:17-alpine',
|
|
562
562
|
'psql',
|
|
563
563
|
'-h', psqlHost,
|
|
564
564
|
'-p', port,
|
|
@@ -659,7 +659,7 @@ export async function verifyDataRestored(connectionInfo, composeFile = null) {
|
|
|
659
659
|
// Get table count
|
|
660
660
|
const tableCountArgs = [...dockerArgs];
|
|
661
661
|
tableCountArgs.push(
|
|
662
|
-
'postgres:
|
|
662
|
+
'postgres:17-alpine',
|
|
663
663
|
'psql',
|
|
664
664
|
'-h', psqlHost,
|
|
665
665
|
'-p', port,
|
|
@@ -676,7 +676,7 @@ export async function verifyDataRestored(connectionInfo, composeFile = null) {
|
|
|
676
676
|
// Get row count
|
|
677
677
|
const rowCountArgs = [...dockerArgs];
|
|
678
678
|
rowCountArgs.push(
|
|
679
|
-
'postgres:
|
|
679
|
+
'postgres:17-alpine',
|
|
680
680
|
'psql',
|
|
681
681
|
'-h', psqlHost,
|
|
682
682
|
'-p', port,
|