` I tried a lot and didnt any kind of answer. I think it is not work
I wanna make migration from php but this is not work and when I execute sql files there is no error but my DB doesn`t change
This command didnt work : $command = sprintf('mysql -u %s -p %s -h %s -D %s < %s', DB_USER, DB_PASSWORD, DB_HOST, DB_NAME, $file);
define('DB_HOST', '127.0.0.1');
define('DB_USER', 'root');
define('DB_PASSWORD', '');
define('DB_NAME', 'test');
define('DB_TABLE_VERSIONS', 'versions');
$command = sprintf('mysql -u %s -p %s -h %s -D %s < %s', DB_USER, DB_PASSWORD, DB_HOST, DB_NAME, $file);
shell_exec($command);