Skip to content

Commit

Permalink
fix invalid migration #2
Browse files Browse the repository at this point in the history
  • Loading branch information
mipyykko committed May 25, 2023
1 parent 508352c commit 7a08082
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/migrations/20230522102035_rename-foreign-keys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export async function up(knex: Knex): Promise<void> {
`)
await knex.raw(`
ALTER TABLE "exercise_completion_required_actions"
RENAME CONSTRAINT "exercise_completion_required_actions_ExerciseCompletion_fkey" TO "exercise_completion_required_actions_exercise_completion_i_fkey";
RENAME CONSTRAINT "exercise_completion_required_actions_exercise_completion_fkey" TO "exercise_completion_required_actions_exercise_completion_i_fkey";
`)
await knex.raw(`
ALTER TABLE "open_university_registration_link"
Expand Down Expand Up @@ -245,7 +245,7 @@ export async function down(knex: Knex): Promise<void> {
await knex.raw(`
ALTER TABLE "exercise_completion_required_actions"
RENAME CONSTRAINT "exercise_completion_required_actions_exercise_completion_i_fkey"
TO "exercise_completion_required_actions_ExerciseCompletion_fkey";
TO "exercise_completion_required_actions_exercise_completion_fkey";
`)

await knex.raw(`
Expand Down

0 comments on commit 7a08082

Please sign in to comment.