diff --git a/lib/database/schema.php b/lib/database/schema.php index 6c6ac4e6a6..186b1f755a 100644 --- a/lib/database/schema.php +++ b/lib/database/schema.php @@ -167,7 +167,7 @@ class Schema // Wrap the CREATE TABLE around the main body chunks... $statements = []; $statements[] = $this->startCreateTable($name, $def) . "\n" . - implode($sql, ",\n") . "\n" . + implode(",\n", $sql) . "\n" . $this->endCreateTable($name, $def); // Multi-value indexes are advisory and for best portability