Skip to content

Commit

Permalink
feat: upgrade migration node to 20.4, fixed migration upsert query to…
Browse files Browse the repository at this point in the history
… remove duplicate columns
  • Loading branch information
eaglethrost committed Jul 18, 2024
1 parent deadee1 commit a1bc05b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
2 changes: 1 addition & 1 deletion migration/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:20.2-alpine
FROM node:20.4-alpine

# Set the current working directory inside the container
WORKDIR /app
Expand Down
20 changes: 1 addition & 19 deletions migration/src/migrate/repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,25 +88,7 @@ export default class MigrationRepository {
"terms",
"title",
"uoc",
"rating",
"archived",
"attributes",
"calendar",
"campus",
"description",
"enrolment_rules",
"equivalents",
"exclusions",
"faculty",
"field_of_education",
"gen_ed",
"level",
"school",
"study_level",
"terms",
"title",
"uoc",
"rating",
"rating"
],
["course_code"],
{ skipUpdateIfNoValuesChanged: true },
Expand Down

0 comments on commit a1bc05b

Please sign in to comment.