Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix: append semicolons to sql statements in migration view (#32814)

JohnBrabe9d42f09774
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 ? ';' : '')
+ }
/>
</div>
</div>