-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathMigrations.yml
54 lines (52 loc) · 3.39 KB
/
Migrations.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
-
# Cancel execution of a migration: all steps following the current one will not be executed.
# The migrations will show up as 'executed' when checking ist status
type: migration
mode: cancel
message: string # Optional. Will be part of the migration status stored in the database
if: # Optional. If set, the migration will be halted when the condition is matched
"reference:_ref_name": # name of a reference to be used for the test
_operator_: value # allowed operators: eq, gt, gte, lt, lte, ne, count, length, regexp, satisfies
-
# Abort execution of a migration: all steps following the current one will not be executed.
# The migrations will show up as 'failed' when checking ist status
type: migration
mode: fail
message: string # Optional. Will be part of the migration status stored in the database
if: # Optional. If set, the migration will be halted when the condition is matched
"reference:_ref_name": # name of a reference to be used for the test
_operator_: value # allowed operators: eq, gt, gte, lt, lte, ne, count, length, regexp, satisfies
-
# Halt a migration for a given number of seconds
type: migration
mode: sleep
seconds: xxx # integer
if: # Optional. If set, the migration will be halted paused the condition is matched
"reference:_ref_name": # name of a reference to be used for the test
_operator_: value # allowed operators: eq, gt, gte, lt, lte, ne, count, length, regexp, satisfies
-
# Suspend execution of a migration: 'freeze" execution at the current step and let the `migrate command finish.
# The migration will be resumed when running the `command ka:mi:resume`, and the 'until' condition will be checked again,
# at which point the migration will either keep executing or be re-suspended.
# Note that the values of all references existing at the time of migration suspension will be preserved and restored
# upon resuming.
# Two types of suspension are supported:
# - suspend until date
# - suspend until a specific condition is met. The condition must involve checking the value of a reference
type: migration
mode: suspend
message: string # Optional. Will be part of the migration status stored in the database
load:
type: content/location/content_type # use this to re-load an entity and recalculate the references when the migration
# is resumed. NB: ALL other references are fixed on the 1st execution and
# will keep the same value upon resuming.
match: # same as when loading content/location/content_type
references: # same as when loading content/location/content_type
until: # Optional. If set, migration will be suspended until the given condition is satisfied.
# NB: needs a cronjob to be set up to later resume.
# Use only one of either 'date' or 'match'
date: timestamp # unix timestamp
match: # Optional. If set, the migration will be suspended until the condition is matched
"reference:_ref_name": # Name of a reference to be used for the test.
# NB: it should have been set using the 'load' tag in the same migration step
_operator_: value # allowed operators: eq, gt, gte, lt, lte, ne, count, length, regexp, satisfies