From 7bbf5b56c83771dd5fdbc7e4aa5907a42901af74 Mon Sep 17 00:00:00 2001
From: Paul Mehrer
Date: Wed, 5 Feb 2025 15:04:39 +0100
Subject: [PATCH] tweak(Setup) make getExistingForeignKeys deprecated
---
tine20/Setup/Backend/Interface.php | 2 ++
tine20/Setup/Backend/Mysql.php | 2 ++
2 files changed, 4 insertions(+)
diff --git a/tine20/Setup/Backend/Interface.php b/tine20/Setup/Backend/Interface.php
index c83de02d4e5..f6aadfb6bc8 100644
--- a/tine20/Setup/Backend/Interface.php
+++ b/tine20/Setup/Backend/Interface.php
@@ -231,6 +231,8 @@ public function applicationVersionQuery($_application);
*
* @param string $tableName
* @return array list of foreignkey names
+ *
+ * @deprecated use getOwnForeignKeys this function should be called getForeignKeys referring to this table
*/
public function getExistingForeignKeys($tableName);
diff --git a/tine20/Setup/Backend/Mysql.php b/tine20/Setup/Backend/Mysql.php
index d5c9e616d40..3185e24df16 100644
--- a/tine20/Setup/Backend/Mysql.php
+++ b/tine20/Setup/Backend/Mysql.php
@@ -132,6 +132,8 @@ public function getCreateStatement(Setup_Backend_Schema_Table_Abstract $_table)
*
* @param string $tableName
* @return array list of foreignkey names
+ *
+ * @deprecated use getOwnForeignKeys this function should be called getForeignKeys referring to this table
*/
public function getExistingForeignKeys($tableName)
{