From 066263e1639fd655c1a5b36a0c8fc9c80abd7fdf Mon Sep 17 00:00:00 2001 From: Daniel Bell Date: Sun, 10 Sep 2023 23:06:07 -0700 Subject: [PATCH] oops --- src/db/postgres/lrsql/postgres/sql/ddl.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/db/postgres/lrsql/postgres/sql/ddl.sql b/src/db/postgres/lrsql/postgres/sql/ddl.sql index 81d677060..355206bb1 100644 --- a/src/db/postgres/lrsql/postgres/sql/ddl.sql +++ b/src/db/postgres/lrsql/postgres/sql/ddl.sql @@ -362,5 +362,5 @@ ALTER TABLE activity ALTER COLUMN payload SET DATA TYPE JSON; -- :name add-statement-to-actor-cascading-delete! -- :command :execute -- :doc Adds a cascading delete to delete st2actor entries when corresponding statements are deleted -ALTER TABLE DROP CONSTRAINT statement_fk; -ALTER TABLE ADD CONSTRAINT statement_fk FOREIGN KEY (statement_id) REFERENCES xapi_statement(statement_id) ON CASCADE DELETE; +ALTER TABLE statment_to_actor DROP CONSTRAINT statement_fk; +ALTER TABLE statment_to_actor ADD CONSTRAINT statement_fk FOREIGN KEY (statement_id) REFERENCES xapi_statement(statement_id) ON CASCADE DELETE;