Skip to content

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

Add default text for when migration name is not available

Joshen Lim2ef9aef99cd9
diff --git a/studio/components/interfaces/Database/Migrations/Migrations.tsx b/studio/components/interfaces/Database/Migrations/Migrations.tsx
index 364378f79ef..620d7b8453a 100644
--- a/studio/components/interfaces/Database/Migrations/Migrations.tsx
+++ b/studio/components/interfaces/Database/Migrations/Migrations.tsx
@@ -117,7 +117,11 @@ const Wrappers = () => {
return (
<Table.tr key={migration.version}>
<Table.td>{migration.version}</Table.td>
- <Table.td>{migration.name}</Table.td>
+ <Table.td
+ className={migration.name.length === 0 ? '!text-scale-900' : ''}
+ >
+ {migration.name ?? 'Name not available'}
+ </Table.td>
<Table.td>{insertedAt}</Table.td>
<Table.td align="right">
<Button