Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

馃悰 Bug: "Internal Error" when converting Text column with Default Value to SingleSelect#12756

Copy link
Copy link
@vonsander

Description

@vonsander
Issue body actions

Please confirm that the bug report does not already exist

  • I confirm there is no existing issue for this bug.

Steps to reproduce

Description:
I am using NocoDB connected to a Supabase (PostgreSQL) database. When I try to change a column type from SingleLineText to SingleSelect via the NocoDB UI, the operation fails if the underlying Postgres column has a DEFAULT value constraint set.

Steps to Reproduce:

  1. Create a table in PostgreSQL (Supabase) via SQL:
    CREATE TABLE public.test_bug ( id uuid DEFAULT gen_random_uuid() PRIMARY KEY, status text DEFAULT 'DRAFT' );

  2. Connect NocoDB to this database.

  3. Open the test_bug table. The status column correctly shows as SingleLineText.

  4. Click Edit Column on status.

  5. Change Type to SingleSelect.

  6. Add an Option (e.g., DRAFT).

  7. Click Save.

Actual Behavior:
UI displays toast notification: Some internal error occurred.
The column remains as Text.

Desired Behavior

NocoDB should handle the existing DEFAULT constraint (either drop it or update it to match the new Enum logic) and successfully convert the column to SingleSelect.

Project Details

Node: v22.20.0
Arch: x64
Platform: linux
Docker: true
RootDB: sqlite3
PackageVersion: 0.265.1

Environment:
Database: PostgreSQL (Supabase)
Deployment: Coolify

Attachments

No response

coderabbitai

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.