diff options
author | Simon Rettberg | 2023-07-18 14:21:03 +0200 |
---|---|---|
committer | Simon Rettberg | 2023-07-18 14:21:03 +0200 |
commit | ff3474e2e69d1ac92eb227dfedd170cfb012ba94 (patch) | |
tree | a4f2a940f0c6001560bb5e245c7b4d9afe3182cc /install.php | |
parent | [systemstatus] Show "reboot required" message on update-tab too (diff) | |
download | slx-admin-ff3474e2e69d1ac92eb227dfedd170cfb012ba94.tar.gz slx-admin-ff3474e2e69d1ac92eb227dfedd170cfb012ba94.tar.xz slx-admin-ff3474e2e69d1ac92eb227dfedd170cfb012ba94.zip |
[news] Fix install: Falsely reported UPDATE_DONE every time
Diffstat (limited to 'install.php')
-rw-r--r-- | install.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/install.php b/install.php index 889c77cd..e403ad7e 100644 --- a/install.php +++ b/install.php @@ -212,8 +212,10 @@ function tableAddConstraint($table, $column, $refTable, $refColumn, $actions, $i // Yep, nothing more to do here return UPDATE_NOOP; } + error_log("$table, $column, $refTable, $refColumn, $actions"); + error_log("Have: {$test['UPDATE_RULE']} want: $update && Have: {$test['DELETE_RULE']} want: $delete"); // Kill the old one - $ret = tableDeleteConstraint($table, $test['CONSTRAINT_NAME']); + tableDeleteConstraint($table, $test['CONSTRAINT_NAME']); } if ($delete === 'CASCADE') { // Deletes are cascaded, so make sure first that all rows get purged that would |