Export of the struture of the same table with PhpMyAdmin:
`DROP TABLE IF EXISTS `test_apprentis`;
CREATE TABLE IF NOT EXISTS `test_apprentis` (
`a_id` smallint
If you want to revert this behavior to how it used to work, edit the file
phpMyAdmin/libraries/plugins/export/ExportSql.class.php
In the file, the code block starting with the below line needs to be skipped
if (preg_match('@CONSTRAINT|KEY@', $create_query)) {
The easiest way to do that is changing that line to
if (false && preg_match('@CONSTRAINT|KEY@', $create_query)) {