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
Confirm before Apply Changes runs DROP COLUMN in the table designer #791
Open ?mock=connected. Expand shop > Tables, right-click orders and pick Design Table.
Click the trash icon on the notes row.
Click Apply Changes.
ALTER TABLE orders DROP COLUMN notes runs at once, on a DEV connection, with no preview and no confirmation. The only feedback is a green "Table saved successfully!". A single misclicked trash icon followed by Apply loses a column of data for good. DBeaver and DataGrip always show the ALTER script and ask before they persist it.
Cause
src/components/designer/TableDesigner.tsx:310-316: in alter mode handlePrimaryAction calls runSave() directly. Create mode opens SQLPreviewDialog. Only connections marked production get the store's own confirmation.
Fix
In alter mode, open SQLPreviewDialog before running, as create mode does. At minimum, require it whenever the diff contains DROP COLUMN, DROP INDEX, DROP FOREIGN KEY or a column type change.
Activity
fix(designer): preview SQL before applying alters
release: 1.4.0 (#871)