Documentation

Editing a schema

How to edit columns, keys, indexes and triggers, write T-SQL for views and procedures, create objects and delete them.

Changes are made to your copy of the schema. Nothing reaches the database until you run a migration script yourself.

Editing a table

Select a table to open its editor below the diagram. It has six sections, each showing a count:

Sections you open stay open as you move between tables. You can also add a relationship by dragging from one box to another on the diagram.

If the Indexes or Triggers section says they are unknown, the project was saved before they were read. Select Refresh in the project menu to load them.

Editing a view, function or procedure

Select it to open its T-SQL. Edit the script, then select Check script and update diagram to apply it. Until you do, your typing is a draft and the schema keeps the previous version.

The check reports:

Column names inside the script are not checked. A script can pass the check and still fail on a misspelled column when you run it.

Renaming one of these objects rewrites the CREATE line of its script to match.

Creating an object

  1. Select + New under the filter box. It creates the kind of object shown on the open tab.
  2. The object appears on the diagram straight away, marked with an amber dot in the list.
  3. Select Keep to file it, or Cancel to remove it.

Until you select Keep, the object is not in your migration script. You can create several objects in a row, but changing object type, opening another object or redrawing the diagram asks you to keep or cancel them first.

Deleting

There is no undo anywhere in WoodFireERD.

An unhandled error has occurred. Reload 🗙