Skip to content

Commit 388615a

Browse files
committed
we can use :::sh now
1 parent 753e010 commit 388615a

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

MyApp/_pages/react/overview.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ We'll quickly cover the common dev workflow for this feature.
139139

140140
To create a new Table use `init <Table>`, e.g:
141141

142-
:::copy
142+
:::sh
143143
npx okai init Transaction
144144
:::
145145

@@ -150,35 +150,35 @@ This will generate an empty `MyApp.ServiceModel/<Table>.d.ts` file along with st
150150
After modifying the TypeScript Data Model to include the desired fields, you can re-run the `okai` tool to generate the AutoQuery APIs and DB Migrations
151151
(which can be run anywhere within your Solution):
152152

153-
:::copy
153+
:::sh
154154
npx okai Transaction.d.ts
155155
:::
156156

157157
After you're happy with your Data Model you can run DB Migrations to run the DB Migration and create your RDBMS Table:
158158

159-
:::copy
159+
:::sh
160160
npm run migrate
161161
:::
162162

163163
#### Making changes after first migration
164164

165165
If you want to make further changes to your Data Model, you can re-run the `okai` tool to update the AutoQuery APIs and DB Migrations, then run the `rerun:last` npm script to drop and re-run the last migration:
166166

167-
:::copy
167+
:::sh
168168
npm run rerun:last
169169
:::
170170

171171
#### Removing a Data Model and all generated code
172172

173173
If you changed your mind and want to get rid of the RDBMS Table you can revert the last migration:
174174

175-
:::copy
175+
:::sh
176176
npm run revert:last
177177
:::
178178

179179
Which will drop the table and then you can get rid of the AutoQuery APIs, DB Migrations and TypeScript Data model with:
180180

181-
:::copy
181+
:::sh
182182
npx okai rm Transaction.d.ts
183183
:::
184184

MyApp/_pages/releases/v8_10.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ We'll quickly cover the common dev workflow for this feature.
140140

141141
To create a new Table use `init <Table>`, e.g:
142142

143-
:::copy
143+
:::sh
144144
npx okai init Transaction
145145
:::
146146

@@ -151,35 +151,35 @@ This will generate an empty `MyApp.ServiceModel/<Table>.d.ts` file along with st
151151
After modifying the TypeScript Data Model to include the desired fields, you can re-run the `okai` tool to generate the AutoQuery APIs and DB Migrations
152152
(which can be run anywhere within your Solution):
153153

154-
:::copy
154+
:::sh
155155
npx okai Transaction.d.ts
156156
:::
157157

158158
After you're happy with your Data Model you can run DB Migrations to run the DB Migration and create your RDBMS Table:
159159

160-
:::copy
160+
:::sh
161161
npm run migrate
162162
:::
163163

164164
#### Making changes after first migration
165165

166166
If you want to make further changes to your Data Model, you can re-run the `okai` tool to update the AutoQuery APIs and DB Migrations, then run the `rerun:last` npm script to drop and re-run the last migration:
167167

168-
:::copy
168+
:::sh
169169
npm run rerun:last
170170
:::
171171

172172
#### Removing a Data Model and all generated code
173173

174174
If you changed your mind and want to get rid of the RDBMS Table you can revert the last migration:
175175

176-
:::copy
176+
:::sh
177177
npm run revert:last
178178
:::
179179

180180
Which will drop the table and then you can get rid of the AutoQuery APIs, DB Migrations and TypeScript Data model with:
181181

182-
:::copy
182+
:::sh
183183
npx okai rm Transaction.d.ts
184184
:::
185185

MyApp/_pages/templates/react.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ We'll quickly cover the common dev workflow for this feature.
188188

189189
To create a new Table use `init <Table>`, e.g:
190190

191-
:::copy
191+
:::sh
192192
npx okai init Transaction
193193
:::
194194

@@ -199,35 +199,35 @@ This will generate an empty `MyApp.ServiceModel/<Table>.d.ts` file along with st
199199
After modifying the TypeScript Data Model to include the desired fields, you can re-run the `okai` tool to generate the AutoQuery APIs and DB Migrations
200200
(which can be run anywhere within your Solution):
201201

202-
:::copy
202+
:::sh
203203
npx okai Transaction.d.ts
204204
:::
205205

206206
After you're happy with your Data Model you can run DB Migrations to run the DB Migration and create your RDBMS Table:
207207

208-
:::copy
208+
:::sh
209209
npm run migrate
210210
:::
211211

212212
#### Making changes after first migration
213213

214214
If you want to make further changes to your Data Model, you can re-run the `okai` tool to update the AutoQuery APIs and DB Migrations, then run the `rerun:last` npm script to drop and re-run the last migration:
215215

216-
:::copy
216+
:::sh
217217
npm run rerun:last
218218
:::
219219

220220
#### Removing a Data Model and all generated code
221221

222222
If you changed your mind and want to get rid of the RDBMS Table you can revert the last migration:
223223

224-
:::copy
224+
:::sh
225225
npm run revert:last
226226
:::
227227

228228
Which will drop the table and then you can get rid of the AutoQuery APIs, DB Migrations and TypeScript Data model with:
229229

230-
:::copy
230+
:::sh
231231
npx okai rm Transaction.d.ts
232232
:::
233233

0 commit comments

Comments
 (0)