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
This generates a migration file called `<timestamp>.my-migration.ts`.
196
196
The timestamp prefix can be customized to be date-only or omitted,
@@ -201,9 +201,9 @@ Developers have to write `up` and `down` migration steps manually.
201
201
2. Running the migration are usually done when server is starting up, but in addition if you want to run migrations or revert use above commands
202
202
203
203
3. Running migrations `docker-compose-prod.yml`
204
-
1. For running the migrations in in dev/test/prod, use `docker exec -it ccm_web_prod node server/src/migrator up` and `docker exec -it ccm_web_prod node server/src/migrator down`.
204
+
1. For running the migrations in in dev/test/prod, use `docker exec -it ccm_web_prod node --loader ts-node/esm server/src/migrator.js up` and `docker exec -it ccm_web_prod node --loader ts-node/esm server/src/migrator.js down`.
205
205
2. The reason for the separate setups for running migrations for local/non-prod and prod is locally, we don't
206
-
transpile TypeScript to Javascript and so we always use `ts-node/register` module for running in node
206
+
transpile TypeScript to Javascript and so we always use `ts-node/esm` module for running in node
207
207
environment.
208
208
209
209
#### Troubleshooting
@@ -352,7 +352,7 @@ This code will hopefully only remain in this repository temporarily.
352
352
2. The action is triggered whenever a commit is made to the `main` branch. E.g., when a pull request is merged to `main`.
353
353
3. OpenShift projects can periodically pull this image from GHCR. Configure only **_NON-PRODUCTION_** CCM projects to pull the image…
354
354
```sh
355
-
oc tag ghcr.io/tl-its-umich-edu/canvas-course-manager-next:latest canvas-course-manager-next:latest --scheduled --reference-policy=local
355
+
oc tag ghcr.io/tl-its-umich-edu/canvas-course-manager-next:main canvas-course-manager-next:main --scheduled --reference-policy=local
356
356
```
357
357
See the OpenShift documentation "[Managing image streams: Configuring periodic importing of image stream tags](https://docs.openshift.com/container-platform/4.11/openshift_images/image-streams-manage.html#images-imagestream-import_image-streams-managing)" for details.
0 commit comments