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
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -96,7 +96,7 @@ The supported commands are divided into groups according to their target, at thi
96
96
* The file is stored in the `Migrations` directory within the root of your repository.
97
97
* Add your migration script in the body of the `run` function using the [Kontent Management SDK](https://github.com/Kentico/kontent-management-sdk-js) that was injected via the `apiClient` parameter.
98
98
* To choose between JavaScript and TypeScript when generating the script file, use the `--template-type` option, such as `--template-type "javascript"`.
99
-
* The migration template contains an `order` property that is used to run a batch of migrations in the specified order.
99
+
* The migration template contains an `order` property that is used to run a batch of migrations (range or all) in the specified order. The `order` must be a unique, positive integer or zero. There may be gaps between migrations, for example, the following sequence is perfectly fine 0,3,4,5,10
100
100
101
101
```typescript
102
102
// Example migration template
@@ -112,7 +112,7 @@ The supported commands are divided into groups according to their target, at thi
thrownewError(chalk.red(`The range has to be a string of a format "number:number" where the first number is less or equal to the second, eg.: "2:5".`));
80
+
}
81
+
}elseif(args.name){
70
82
if(!isAllowedExtension(args.name)){
71
83
thrownewError(chalk.red(`File ${args.name} has not supported extension.`));
0 commit comments