diff --git a/src/Schema/CockroachSchemaState.php b/src/Schema/CockroachSchemaState.php index 7060635..3bff5ed 100644 --- a/src/Schema/CockroachSchemaState.php +++ b/src/Schema/CockroachSchemaState.php @@ -33,7 +33,7 @@ public function dump(Connection $connection, $path): void }); if ($statements !== []) { - $file .= PHP_EOL . $statements[0]['query']; + $file .= PHP_EOL . $statements[0]['query'] .(ends_with(trim($statements[0]['query']), ';') ? '' : ';'); } $this->files->put($path, $file);