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
Project created with `starter-code-v2` as the UWBlueprint's backend repository.
1
+
# Prefaces
2
+
Project created with `starter-code-v2` as the UWBlueprint's backend repository.
3
+
# Migrations
4
+
5
+
6
+
## Create Migration File
7
+
This repository includes a script for generating migration files in the `typescript/migrations` directory. The script automates the creation of migration files with a timestamped name and a basic template.
8
+
9
+
To run the script, use the following command:
10
+
```bash
11
+
cd backend/typescript
12
+
```
13
+
```bash
14
+
ts-node create-migrate.ts <name of migration>
15
+
```
16
+
Example:
17
+
```bash
18
+
ts-node create-migrate.ts create-applicant-table
19
+
```
20
+
## Running Migrations
21
+
To apply all pending migrations to the database, use the following command. This will execute the migration files sequentially and update the database schema:
22
+
```bash
23
+
docker exec recruitment_tools_backend node migrate up
0 commit comments