diff --git a/apps/studio/components/interfaces/Database/Migrations/Migrations.tsx b/apps/studio/components/interfaces/Database/Migrations/Migrations.tsx index abfbd2ca145..d573f9a32ba 100644 --- a/apps/studio/components/interfaces/Database/Migrations/Migrations.tsx +++ b/apps/studio/components/interfaces/Database/Migrations/Migrations.tsx @@ -210,7 +210,10 @@ const Migrations = () => { isReadOnly id={selectedMigration?.version ?? ''} language="pgsql" - defaultValue={selectedMigration?.statements?.join('\n')} + defaultValue={ + selectedMigration?.statements?.join(';\n') + + (selectedMigration?.statements?.length ? ';' : '') + } />