diff --git a/class/Common/MigrateHelper.php b/class/Common/MigrateHelper.php index 09c948d..f654ed7 100644 --- a/class/Common/MigrateHelper.php +++ b/class/Common/MigrateHelper.php @@ -212,8 +212,11 @@ private function getColumns (string $line) } else { return false; } - $attributes = \trim(\str_replace([$name, '`', ','], '', $line)); + $attributes = \trim(\str_replace([$name, '`'], '', $line)); + if (',' == \substr($attributes, - 1)) { + $attributes = substr($attributes, 0, strlen($attributes) - 1); + } $columns['name'] = $name; // update quotes if (\strpos($attributes, "''") > 0) { diff --git a/docs/changelog.txt b/docs/changelog.txt index c9ec25a..5c1b140 100644 --- a/docs/changelog.txt +++ b/docs/changelog.txt @@ -9,6 +9,7 @@ - fixed bug with download zip (cesagonchu/goffy) - adapted update due to new semantic versioning (goffy) - updated viewerjs (goffy) + - fixed bug in MigrateHelper (goffy)
1.15 RC2
[2021/04/19]