Skip to content

Commit

Permalink
fix invalid migration
Browse files Browse the repository at this point in the history
  • Loading branch information
mipyykko committed May 25, 2023
1 parent 2922719 commit 508352c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 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_exercise_completion_fkey" TO "exercise_completion_required_actions_exercise_completion_i_fkey";
RENAME CONSTRAINT "exercise_completion_required_actions_ExerciseCompletion_fkey" TO "exercise_completion_required_actions_exercise_completion_i_fkey";
`)
await knex.raw(`
ALTER TABLE "open_university_registration_link"
Expand Down Expand Up @@ -244,7 +244,8 @@ 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_exercise_completion_fkey";
RENAME CONSTRAINT "exercise_completion_required_actions_exercise_completion_i_fkey"
TO "exercise_completion_required_actions_ExerciseCompletion_fkey";
`)

await knex.raw(`
Expand Down

0 comments on commit 508352c

Please sign in to comment.