From 5f1c50a24300be7f228d9e639007e38d7c1fb184 Mon Sep 17 00:00:00 2001 From: Michael Fliegner <12422482+michaelfliegner@users.noreply.github.com> Date: Sun, 15 Oct 2023 17:44:23 +0200 Subject: [PATCH] fkconstraints testdummysubcomponent corected --- src/DDL.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/DDL.jl b/src/DDL.jl index a4f459f..33c8e67 100644 --- a/src/DDL.jl +++ b/src/DDL.jl @@ -141,9 +141,9 @@ function up() create_table(:testdummySubComponents) do [ column(:id, :bigserial, "PRIMARY KEY") - column(:ref_history, :bigint, "REFERENCES testdummyComponents(id) ON DELETE CASCADE") + column(:ref_history, :bigint, "REFERENCES histories(id) ON DELETE CASCADE") column(:ref_version, :bigint, "REFERENCES versions(id) ON DELETE CASCADE") - column(:ref_super, :bigint, "REFERENCES histories(id) ON DELETE CASCADE") + column(:ref_super, :bigint, "REFERENCES testdummyComponents(id) ON DELETE CASCADE") ] end @@ -221,4 +221,4 @@ function down() drop_table(:versions) drop_table(:histories) end -end #module \ No newline at end of file +end #module