Skip to content

Commit

Permalink
fix: don't reference schema explicitly (#436)
Browse files Browse the repository at this point in the history
  • Loading branch information
axelrindle committed Aug 13, 2024
1 parent e22d3e3 commit a674425
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ defmodule Accent.Repo.Migrations.AlterOperationsTranslationIdConstraint do

execute("""
ALTER TABLE operations
ADD CONSTRAINT "operations_translation_id_fkey" FOREIGN KEY ("translation_id") REFERENCES "public"."translations"("id") DEFERRABLE INITIALLY DEFERRED
ADD CONSTRAINT "operations_translation_id_fkey" FOREIGN KEY ("translation_id") REFERENCES "translations"("id") DEFERRABLE INITIALLY DEFERRED
""")
end

Expand All @@ -22,7 +22,7 @@ defmodule Accent.Repo.Migrations.AlterOperationsTranslationIdConstraint do

execute("""
ALTER TABLE operations
ADD CONSTRAINT "operations_translation_id_fkey" FOREIGN KEY ("translation_id") REFERENCES "public"."translations"("id")
ADD CONSTRAINT "operations_translation_id_fkey" FOREIGN KEY ("translation_id") REFERENCES "translations"("id")
""")
end
end

0 comments on commit a674425

Please sign in to comment.