You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix: Design Table is offered for SQLite tables #889
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
Open ?mock=connected.
Open the SQLite fixture file.
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
fix: hide Design Table for SQLite tables