@ttoss/postgresdb-cli 0.1.21 → 0.1.23
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/README.md +2 -0
- package/dist/esm/index.js +2 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -51,6 +51,8 @@ This loads variables from `.env.Production`.
|
|
|
51
51
|
|
|
52
52
|
⚠️ **Caution:** The `--alter` flag modifies your database schema. Removing columns will **delete data permanently**. The CLI will prompt for confirmation before proceeding. Always backup your database before using `--alter` in production. For production environments, use proper migration tools instead of `sync`.
|
|
53
53
|
|
|
54
|
+
**Testing before using `--alter`:** Always ensure your models have comprehensive tests before running `sync --alter`. Tests validate that all model properties are correctly defined and prevent accidental column removal. If a column is missing from your model definition, `--alter` will drop it from the database. See the [@ttoss/postgresdb testing guide](https://ttoss.dev/docs/modules/packages/postgresdb/#testing) for details on setting up model tests.
|
|
55
|
+
|
|
54
56
|
**Add to `package.json` for convenience:**
|
|
55
57
|
|
|
56
58
|
```json
|
package/dist/esm/index.js
CHANGED
|
@@ -11,7 +11,7 @@ import { Command } from "commander";
|
|
|
11
11
|
// package.json
|
|
12
12
|
var package_default = {
|
|
13
13
|
name: "@ttoss/postgresdb-cli",
|
|
14
|
-
version: "0.1.
|
|
14
|
+
version: "0.1.23",
|
|
15
15
|
description: "A library to handle PostgreSQL database actions through the command line",
|
|
16
16
|
license: "MIT",
|
|
17
17
|
author: "ttoss",
|
|
@@ -33,7 +33,7 @@ var package_default = {
|
|
|
33
33
|
dependencies: {
|
|
34
34
|
commander: "^14.0.0",
|
|
35
35
|
dotenv: "^17.0.1",
|
|
36
|
-
esbuild: "^0.
|
|
36
|
+
esbuild: "^0.27.0",
|
|
37
37
|
"sequelize-erd": "^1.3.1"
|
|
38
38
|
},
|
|
39
39
|
devDependencies: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttoss/postgresdb-cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.23",
|
|
4
4
|
"description": "A library to handle PostgreSQL database actions through the command line",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "ttoss",
|
|
@@ -24,13 +24,13 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"commander": "^14.0.0",
|
|
26
26
|
"dotenv": "^17.0.1",
|
|
27
|
-
"esbuild": "^0.
|
|
27
|
+
"esbuild": "^0.27.0",
|
|
28
28
|
"sequelize-erd": "^1.3.1"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"jest": "^30.2.0",
|
|
32
32
|
"tsup": "^8.5.1",
|
|
33
|
-
"@ttoss/config": "^1.35.
|
|
33
|
+
"@ttoss/config": "^1.35.12"
|
|
34
34
|
},
|
|
35
35
|
"keywords": [
|
|
36
36
|
"database",
|