You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-16Lines changed: 15 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ Managing database migrations in a Version Control System (VCS) can be challengin
30
30
31
31
### Best Practices
32
32
33
-
-**Separate Schemas**: Isolate data and business logic (e.g., views, triggers) into distinct schemas for easier upgrades.
33
+
-**Separate Schemas**: Isolate data from business logic (e.g., views, triggers) into distinct schemas for easier upgrades.
34
34
-**Read More**: Explore articles like [Get Your Database Under Version Control](https://blog.codinghorror.com/get-your-database-under-version-control/) for insights into database versioning.
35
35
36
36
### Learn More
@@ -42,34 +42,33 @@ Managing database migrations in a Version Control System (VCS) can be challengin
42
42
PUM was developed to address challenges in the [TEKSI](https://github.com/TESKI) project, an open-source GIS for network management based on [QGIS](http://qgis.org/fr/site/).
43
43
44
44
45
+
46
+
45
47
## Command line
46
48
47
49
### pum
48
50
49
51
The usage of the pum command is:
50
52
```commandline
51
-
52
53
usage: pum [-h] [-v] [-c CONFIG_FILE]
53
-
{check,dump,restore,baseline,info,upgrade,test}
54
-
...
54
+
{check,dump,restore,baseline,info,upgrade,test}
55
+
...
55
56
56
57
optional arguments:
57
-
-h, --help show this help message and exit
58
-
-v, --version print the version and exit
58
+
-h, --help Show this help message and exit.
59
+
-v, --version Print the version and exit.
59
60
-c CONFIG_FILE, --config_file CONFIG_FILE
60
-
set the config file
61
+
Specify the configuration file.
61
62
62
63
commands:
63
-
valid pum commands
64
-
65
64
{check,dump,restore,baseline,info,upgrade,test}
66
-
check check the differences between two databases
67
-
dump dump a Postgres database
68
-
restore restore a Postgres database from a dump file
69
-
baseline Create upgrade information table and set baseline
70
-
info show info about upgrades
71
-
upgradeupgrade db
72
-
65
+
check Compare two databases and display differences.
66
+
dump Create a backup of a PostgreSQL database.
67
+
restore Restore a PostgreSQL database from a backup file.
68
+
baseline Initialize upgrade information table and set baseline.
69
+
info Display the status of applied or pending upgrades.
70
+
upgrade Apply SQL delta files to upgrade the database.
71
+
test Run tests to validate database migrations.
73
72
```
74
73
75
74
Pum is using [postgres connection service file](https://www.postgresql.org/docs/current/static/libpq-pgservice.html) to define the database connection parameters.
0 commit comments