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: Rivet/Functions/Invoke-Rivet.ps1
+13-1Lines changed: 13 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -63,6 +63,7 @@ function Invoke-Rivet
63
63
[Parameter(ParameterSetName='Redo')]
64
64
[Parameter(ParameterSetName='DropDatabase')]
65
65
[Parameter(ParameterSetName='Checkpoint')]
66
+
[Parameter(ParameterSetName='InitializeSchema')]
66
67
[string[]]
67
68
# The database(s) to migrate. Optional. Will operate on all databases otherwise.
68
69
$Database,
@@ -76,6 +77,7 @@ function Invoke-Rivet
76
77
[Parameter(ParameterSetName='Redo')]
77
78
[Parameter(ParameterSetName='DropDatabase')]
78
79
[Parameter(ParameterSetName='Checkpoint')]
80
+
[Parameter(ParameterSetName='InitializeSchema')]
79
81
[string]
80
82
# The environment you're working in. Controls which settings Rivet loads from the `rivet.json` configuration file.
81
83
$Environment,
@@ -89,6 +91,7 @@ function Invoke-Rivet
89
91
[Parameter(ParameterSetName='Redo')]
90
92
[Parameter(ParameterSetName='DropDatabase')]
91
93
[Parameter(ParameterSetName='Checkpoint')]
94
+
[Parameter(ParameterSetName='InitializeSchema')]
92
95
[string]
93
96
# The path to the Rivet configuration file. Default behavior is to look in the current directory for a `rivet.json` file. See `about_Rivet_Configuration` for more information.
94
97
$ConfigFilePath,
@@ -101,7 +104,12 @@ function Invoke-Rivet
101
104
[Parameter(ParameterSetName='Checkpoint')]
102
105
[Switch]
103
106
# Checkpoints the current state of the database so that it can be re-created.
104
-
$Checkpoint
107
+
$Checkpoint,
108
+
109
+
[Parameter(ParameterSetName='InitializeSchema')]
110
+
[Switch]
111
+
# Initializes the database, including baseline schema. Use the -Checkpoint switch to create a database baseline.
112
+
$InitializeSchema
105
113
)
106
114
107
115
Set-StrictMode-Version 'Latest'
@@ -193,6 +201,10 @@ Found no databases to migrate. This can be a few things:
Copy file name to clipboardExpand all lines: Rivet/rivet.ps1
+9-1Lines changed: 9 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -130,6 +130,7 @@ param(
130
130
[Parameter(ParameterSetName='Redo')]
131
131
[Parameter(ParameterSetName='DropDatabase')]
132
132
[Parameter(ParameterSetName='Checkpoint')]
133
+
[Parameter(ParameterSetName='InitializeSchema')]
133
134
[string[]]
134
135
# The database(s) to migrate. Optional. Will operate on all databases otherwise.
135
136
$Database,
@@ -143,6 +144,7 @@ param(
143
144
[Parameter(ParameterSetName='Redo')]
144
145
[Parameter(ParameterSetName='DropDatabase')]
145
146
[Parameter(ParameterSetName='Checkpoint')]
147
+
[Parameter(ParameterSetName='InitializeSchema')]
146
148
[string]
147
149
# The environment you're working in. Controls which settings Rivet loads from the `rivet.json` configuration file.
148
150
$Environment,
@@ -156,6 +158,7 @@ param(
156
158
[Parameter(ParameterSetName='Redo')]
157
159
[Parameter(ParameterSetName='DropDatabase')]
158
160
[Parameter(ParameterSetName='Checkpoint')]
161
+
[Parameter(ParameterSetName='InitializeSchema')]
159
162
[string]
160
163
# The path to the Rivet configuration file. Default behavior is to look in the current directory for a `rivet.json` file. See `about_Rivet_Configuration` for more information.
161
164
$ConfigFilePath,
@@ -168,7 +171,12 @@ param(
168
171
[Parameter(ParameterSetName='Checkpoint')]
169
172
[Switch]
170
173
# Checkpoints the current state of the database so that it can be re-created.
171
-
$Checkpoint
174
+
$Checkpoint,
175
+
176
+
[Parameter(ParameterSetName='InitializeSchema')]
177
+
[Switch]
178
+
# Initializes the database, including baseline schema. Use the -Checkpoint switch to create a database baseline.
0 commit comments