src/Tequilarapido/Cli/Commands/DatabaseTruncateCleanup.php 1 location
|
@@ 71-78 (lines=8) @@
|
68 |
|
} |
69 |
|
|
70 |
|
// Add multi tables |
71 |
|
if (!empty($cleanupConf->multi) && is_array($cleanupConf->multi)) { |
72 |
|
foreach ($cleanupConf->multi as $t) { |
73 |
|
$matchedTables = $this->table->getTablesForMulti($t, $this->databasePrefix, $all); |
74 |
|
if (!empty($matchedTables)) { |
75 |
|
$tables = array_merge($tables, $matchedTables); |
76 |
|
} |
77 |
|
} |
78 |
|
} |
79 |
|
|
80 |
|
return array_unique($tables); |
81 |
|
} |
src/Tequilarapido/Database/Table.php 1 location
|
@@ 43-50 (lines=8) @@
|
40 |
|
} |
41 |
|
|
42 |
|
// Add multi tables |
43 |
|
if (!empty($cleanupConf->multi) && is_array($cleanupConf->multi)) { |
44 |
|
foreach ($cleanupConf->multi as $t) { |
45 |
|
$matchedTables = $this->getTablesForMulti($t, $all, $prefix); |
46 |
|
if (!empty($matchedTables)) { |
47 |
|
$tables = array_merge($tables, $matchedTables); |
48 |
|
} |
49 |
|
} |
50 |
|
} |
51 |
|
|
52 |
|
return array_unique($tables); |
53 |
|
} |