Skip to content

feat(console): table dialogs (point 12.3, second part) - #224

Merged
SauravYadav12 merged 2 commits into
mainfrom
feat/p12-tables
Nov 10, 2026
Merged

SauravYadav12 merged 2 commits into
mainfrom
feat/p12-tables

Conversation

@SauravYadav12

Copy link
Copy Markdown
Collaborator

Second part of point 12.3 (pgAdmin's basics): table dialogs. This completes 12.3, after the function and trigger dialogs in #223.

What it adds

  • + New table… in the Console's schema rail makes a table with its columns (type, default, NOT NULL) and primary key. The new table then opens on its columns.
  • Structure tab: columns are listed from the catalog, with identity and generated columns marked.
    • + Add column…, Edit… and Drop…, plus Rename table… and Drop table….
    • A column edit writes only what changed: name, type with an optional USING, NOT NULL and default. It runs in one transaction with the rename last, so a failed rename leaves nothing applied.
  • Constraints tab: add, edit, rename and drop primary, unique, foreign and check keys.
    • Columns are picked in the key's order.
    • For a foreign key, choosing the table fills in its primary key as the referenced columns. ON DELETE, ON UPDATE and deferrable can be set.
    • An edit replaces the key in one statement under the same name, keeping MATCH FULL, NOT VALID and NO INHERIT.
    • A key the dialog can't rewrite (INCLUDE, NULLS NOT DISTINCT, an exclusion constraint, an inherited key) can be renamed and dropped, but not edited.
  • Each dialog shows its SQL and runs it as the person. DROP TABLE is refused by the guardrail as it is anywhere; Put it in the editor is the way to override it.
  • FoxByte's own tables and foreign tables are not offered.
  • The engine returns each constraint's parts (key) on GET …/schema/table/{oid}.

Tests

  • integration 936/936 (§11aq new)
  • UI 61/61 plus the upgrade test (tables.spec.ts new)
  • f5 57/57, f1 70/70, f6 71/71
  • web unit 294/294
  • Go unit tests in both editions, vet for macOS, Linux and Windows

v2: 401/403. The two failures come from main, not this branch: v2 on main at a508614, without this change, fails the same two checks.

  • A point-in-time branch's Blackbox holds 82 entries from after the entry it was made before.
  • A branch's restart adds those 82 entries again.

They appeared after #222's Blackbox changes and need their own fix.

New table, with its columns and primary key. A table's columns added,
edited and dropped, and the table renamed and dropped, from its Structure
tab; its primary, unique, foreign and check keys added, edited, renamed and
dropped from its Constraints tab. Each dialog shows the SQL as it is built
and runs it as the person. The catalog gives each constraint's parts.
@vercel

vercel Bot commented Nov 10, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
foxbyte-get Ready Ready Preview Nov 10, 2026 6:46pm UTC

@SauravYadav12
SauravYadav12 merged commit b1dd375 into main Nov 10, 2026
8 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 10, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant