Skip to content

fix: Design Table is offered for SQLite tables #889

Closed

Description

@EVWorth

The schema tree's table menu shows "Design Table" for tables in an open SQLite file. The table designer is MySQL-only: it loads the table through MySQL api.* calls (get_columns, get_indexes, get_foreign_keys with a connection id) and generates MySQL ALTER TABLE DDL. So for a SQLite table it opens a designer that can't load the table, and couldn't apply its changes if it did.

Reproduce

  1. Open ?mock=connected.
  2. Open the SQLite fixture file.
  3. Right-click a table and choose Design Table.

Cause

The menu in src/components/schema/SchemaTree.tsx adds Design Table without checking the data source kind. "New Table…" is already hidden for SQLite (#818).

Fix

Hide Design Table for SQLite data sources the same way New Table is hidden. Add a test next to the "New Table (#818)" tests in SchemaTree.test.tsx asserting it is absent for SQLite. A SQLite-capable designer would be a separate feature.

Activity

  1. added
    bug
    on Oct 24, 2026
  2. added a commit that references this issue on Oct 25, 2026
    aa96330
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions