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
@@ -30,48 +30,76 @@ You are also should run `./manage.py migrate` before using additional management
30
30
## Using
31
31
There are two commands to manage migrations state.
32
32
33
-
For both commands you can pass the `PATH` argument to specify path to git repository directory (local). Default path is current dir : `'.'`.
33
+
Both commands have common arguments:
34
+
```bash
35
+
-p PATH, --path PATH Git repository path.
36
+
-l LOGGER, --logger LOGGER
37
+
Logger name for logging.
38
+
--log-level LOG_LEVEL
39
+
Log level for logging. INFO, DEBUG, etc.
40
+
41
+
```
42
+
`PATH` argument used to specify path to git repository directory (local). Default path is current dir : `'.'`.
43
+
44
+
`LOGGER` and `LOG_LEVEL` arguments can be used to setup internal logging. For example, you can use one of django_logging loggers (to push it to slack, write console, file, etc.). There is no default value, so by default additional logging disabled.
Save migrations state for current commit. It also check if commit already
56
+
exists and print warning if it`s not the latest state that may be a symptom of
57
+
inconsistent state for migrations.
44
58
45
59
optional arguments:
46
60
-p PATH, --path PATH Git repository path.
61
+
-l LOGGER, --logger LOGGER
62
+
Logger name for logging.
63
+
--log-level LOG_LEVEL
64
+
Log level for logging. INFO, DEBUG, etc.
65
+
47
66
```
48
-
This command used to save apps migrations state of current commit to DB (it create new or update existing state).
67
+
This command used to save apps migrations state of current commit to DB. It try to create new state, but if already exists it checks is this state the latest.
68
+
If state for current commit is not the latest - it may be a symptom of problems and rollback from current commit will not work for it.
0 commit comments