Skip to content

Commit

Permalink
Merge pull request #90 from ggoffy/master
Browse files Browse the repository at this point in the history
fixed bug in MigrateHelper
  • Loading branch information
ggoffy authored Aug 18, 2022
2 parents d26df1e + 57304c9 commit 83456e3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion class/Common/MigrateHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
1 change: 1 addition & 0 deletions docs/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

<h5>1.15 RC2</h5> [2021/04/19]
<hr>
Expand Down

0 comments on commit 83456e3

Please sign in to comment.