1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-10 16:44:17 +02:00

Ignore removed CREATE+ALTER mode in trigger_sql()

This commit is contained in:
Jakub Vrana
2018-01-22 14:14:42 +01:00
parent 923c0ffc87
commit ce17b6cf46
4 changed files with 5 additions and 8 deletions

View File

@@ -706,11 +706,10 @@ AND typelem = 0"
/** Get SQL commands to create triggers
* @param string
* @param string
* @return string
*/
//@TODO
function trigger_sql($table, $style) {
function trigger_sql($table) {
$return = "";
//foreach (get_rows("SHOW TRIGGERS LIKE " . q(addcslashes($table, "%_\\")), null, "-- ") as $row) {
// $return .= "\n" . ($style == 'CREATE+ALTER' ? "DROP TRIGGER IF EXISTS " . idf_escape($row["Trigger"]) . ";;\n" : "")