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
* Add initial migration
* Add new migration system and migration states in version table
* deprecate 'progress' and remove 'clear-collectionfield-tables' routes
* set decimals to minimum if below minimum
* use migration tables for initial migration
* centralize MODELS in InternalHelper
* hard coded ORIGIN_COLLECTIONS
* unskip initial import tests
* delete migrations core
* use advisory locks instead in schema creation
* source environment variables in interactive shell
---------
Co-authored-by: Danny <dreichelt@intevation.de>
Co-authored-by: reicda <165993199+reicda@users.noreply.github.com>
Co-authored-by: Luisa <luisa.beerboom@intevation.de>
Co-authored-by: Alexej <33332102+4echow@users.noreply.github.com>
Co-authored-by: luisa-beerboom <101706784+luisa-beerboom@users.noreply.github.com>
Co-authored-by: peb-adr <adrichter97@gmail.com>
All commands except `progress` are directly translated the the respective method calls to the datastore module as well as the `verbose` flag. While a migration is running (either via `migrate` or `finalize`), no other commands are permitted except `progress`. The `progress` command is an additional command only available in the backend which reports the progress of a long-running migration (which is executed in a thread).
11
+
While a migration is running (either via `migrate` or `finalize`), no other commands are permitted except `stats`. The `stats` command reports the progress of a long-running migration (which is executed in a thread).
12
12
13
13
The output of all commands except `stats` is the following (for a successful request):
14
14
```js
15
15
enum MigrationState {
16
-
MIGRATION_RUNNING="migration_running"
17
16
MIGRATION_REQUIRED="migration_required"
17
+
MIGRATION_RUNNING="migration_running"
18
+
MIGRATION_FAILED="migration_failed"
18
19
FINALIZATION_REQUIRED="finalization_required"
19
-
NO_MIGRATION_REQUIRED="no_migration_required"
20
+
FINALIZATION_RUNNING="finalization_running"
21
+
FINALIZED="finalized"
22
+
FINALIZATION_FAILED="finalization_failed"
20
23
}
21
24
22
25
{
@@ -30,20 +33,20 @@ enum MigrationState {
30
33
```
31
34
`output` always contains the full output of the migration command up to this point. `exception` contains the thrown exception, if any, which can only be the case if the command is finished (meaning `status != "migration_running"`). After issuing a migration command, it is waited a short period of time for the thread to finish, so the status can be all of these things for any command (e.g. after calling `migrate`, the returned status can be either `MIGRATION_RUNNING` if the migrations did not finish directly or `FINALIZATION_REQUIRED` if the migration is already done).
32
35
33
-
The output of migration commands is stored until a new migration command is issued, meaning repeated `progress` requests after a finished command will always return the same result with the full output.
0 commit comments