We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3f0c05 commit b893010Copy full SHA for b893010
mysql2phinx.php
@@ -63,8 +63,20 @@ function createMigration($mysqli, $indent = 2)
63
64
function getTables($mysqli)
65
{
66
- $tables = $mysqli->query('SHOW TABLES')->fetch_all();
67
- return array_column($tables, 0);
+ $res = $mysqli->query('SHOW TABLES');
+ $blacklist = array(
68
+ 'phinxlog',
69
+ );
70
+ $buff = array_map(function ($a) {
71
+ return $a[0];
72
+ }, $res->fetch_all());
73
+ $newbuff = array();
74
+ foreach ($buff as $k => $t) {
75
+ if (in_array($t, $blacklist))
76
+ continue;
77
+ $newbuff[] = $t;
78
+ }
79
+ return $newbuff;
80
}
81
82
function getTableMigration($table, $mysqli, $indent)
0 commit comments