@@ -35,7 +35,7 @@ Use the integrated help in the tool:
35
35
36
36
``` powershell
37
37
c:\>fdmigrator help
38
- fdmigrator v0.8 .0 | (c)2024, [email protected]
38
+ fdmigrator v0.9 .0 | (c) 2024, [email protected]
39
39
40
40
Usage: fdmigrator <global options> <command> <arguments>
41
41
@@ -45,29 +45,34 @@ Global Options:
45
45
46
46
Commands and Arguments:
47
47
init Creates the working structure in <WorkDir>
48
+ [--seq [fmt]] Selects Sequential format for step prefix, i.e. 00001-Create_Customer_Table.sql.
49
+ Default fmt is "00000". Use a fmt compatible with Delphi FormatFloat.
50
+ [--TS [fmt]] Selects TimeStamp format for step prefix, i.e. 20240616132951508-Create_Customer_Table.sql.
51
+ Default fmt is "yyyymmddhhnnsszzz". Use a fmt compatible with Delphi FormatDateTime.
52
+ --TS is the default option
48
53
49
54
steps Lists the steps pending application.
50
- -a Lists all steps
55
+ [-a] Lists all steps
51
56
52
57
status Displays the last applied step.
53
58
54
59
new Creates a new migration step.
55
60
-d Description. Required. Used to generate the step file name
56
- -t Template to use ("table" or "default")
61
+ [-t] Template to use ("table" or "default")
57
62
58
63
defs Displays the connection names in use. Names starting with "!" are ignored.
59
64
60
65
up Applies all pending steps.
61
- -n <n> Applies only the next <n> steps.
66
+ [ -n <n>] Applies only the next <n> steps.
62
67
63
68
down Reverts the last applied step.
64
- -n <n> Reverts the next <n> steps. Pass * for all.
69
+ [ -n <n>] Reverts the next <n> steps. Pass * for all.
65
70
66
71
help Displays this help.
67
72
68
73
Usage Examples:
69
74
70
- fdmigrator -w ./db steps list
75
+ fdmigrator -w ./db steps
71
76
Uses "./db" as the working directory and lists the pending migration steps.
72
77
73
78
fdmigrator -w ./db up -n 3
0 commit comments