Thanks to visit codestin.com
Credit goes to github.com

Skip to content

πŸ› Bug: [External DB] Error when trying to rename BT fieldΒ #12639

@dstala

Description

@dstala

Please confirm that the bug report does not already exist

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

Steps to reproduce

  • Connect to PG Sakila DB
  • Rename country (BT) field in city table
  • Cannot destructure property 'type' of 't' as it is undefined.
  • Request PATCH http://localhost:9000/api/v1/db/meta/columns/c7xlaa6ayow43j4
{
    "title": "countryx",
    "description": null,
    "uidt": "LinkToAnotherRecord",
    "custom": {},
    "id": "c7xlaa6ayow43j4",
    "source_id": "b2vhpuz4htv00yb",
    "base_id": "pd7vhc9sja6w0yv",
    "fk_model_id": "mdyiem7nbywm1dq",
    "column_name": "countryx",
    "dt": null,
    "np": null,
    "ns": null,
    "clen": null,
    "cop": null,
    "pk": null,
    "pv": null,
    "rqd": null,
    "un": null,
    "ct": null,
    "ai": null,
    "unique": null,
    "cdf": null,
    "cc": null,
    "csn": null,
    "dtx": null,
    "dtxp": null,
    "dtxs": null,
    "au": null,
    "validate": "",
    "virtual": null,
    "deleted": null,
    "system": false,
    "order": 6,
    "created_at": "2025-11-10 09:24:32+00:00",
    "updated_at": "2025-11-10 09:24:32+00:00",
    "meta": {
        "defaultViewColOrder": 6,
        "defaultViewColVisibility": true
    },
    "readonly": false,
    "custom_index_name": null,
    "colOptions": {
        "virtual": null,
        "id": "l994fgux96bpnjo",
        "ref_db_alias": null,
        "type": "bt",
        "db_type": null,
        "fk_column_id": "c7xlaa6ayow43j4",
        "fk_related_model_id": "mr71pffxm29hzek",
        "fk_child_column_id": "cnsrihf0he7xi6q",
        "fk_parent_column_id": "cua26oj6fy7kdjf",
        "fk_mm_model_id": null,
        "fk_mm_child_column_id": null,
        "fk_mm_parent_column_id": null,
        "ur": "CASCADE",
        "dr": "RESTRICT",
        "fk_index_name": "city_country_id_fkey",
        "deleted": null,
        "created_at": "2025-11-10 09:24:32+00:00",
        "updated_at": "2025-11-10 09:24:32+00:00",
        "fk_target_view_id": null,
        "base_id": "pd7vhc9sja6w0yv",
        "fk_related_base_id": null,
        "fk_mm_base_id": null,
        "fk_related_source_id": null,
        "fk_mm_source_id": null
    },
    "extra": {},
    "childViewId": null,
    "childId": "mr71pffxm29hzek",
    "type": "bt",
    "altered": 8,
    "table_name": "city"
}

Original report
https://community.nocodb.com/t/cannot-destructure-property-type-of-t-as-it-is-undefined/2098/

Desired Behavior

Rename BT field

Project Details

265.1

Attachments

No response

Metadata

Metadata

Assignees

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