Skip to content

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

Add is nullable column to ColumnList (#36352)

Joshen Lim46337689db16
diff --git a/apps/studio/components/interfaces/Database/Tables/ColumnList.tsx b/apps/studio/components/interfaces/Database/Tables/ColumnList.tsx
index cb595bc58cf..c77fee04b4e 100644
--- a/apps/studio/components/interfaces/Database/Tables/ColumnList.tsx
+++ b/apps/studio/components/interfaces/Database/Tables/ColumnList.tsx
@@ -1,6 +1,6 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { noop } from 'lodash'
-import { ChevronLeft, Edit, MoreVertical, Plus, Search, Trash } from 'lucide-react'
+import { Check, ChevronLeft, Edit, MoreVertical, Plus, Search, Trash, X } from 'lucide-react'
import Link from 'next/link'
import { useState } from 'react'
@@ -125,6 +125,9 @@ const ColumnList = ({
</Table.th>,
<Table.th key="type">Data Type</Table.th>,
<Table.th key="format">Format</Table.th>,
+ <Table.th key="format" className="text-center">
+ Nullable
+ </Table.th>,
<Table.th key="buttons"></Table.th>,
]}
body={columns.map((x) => (
@@ -145,6 +148,13 @@ const ColumnList = ({
<Table.td className="font-mono text-xs">
<code className="text-xs">{x.format}</code>
</Table.td>
+ <Table.td className="font-mono text-xs">
+ {x.is_nullable ? (
+ <Check size={16} className="mx-auto" />
+ ) : (
+ <X size={16} className="mx-auto" />
+ )}
+ </Table.td>
<Table.td className="text-right">
{!isLocked && isTableEntity && (
<DropdownMenu>