Mistakes

What each message in the Schema code pane means, and how to fix the line.

If a line can't be read, the pane's header shows a message with its line number. So does the Problems panel. The diagram keeps its last working version until you fix the line.

Messages and fixes

MessageWhat to do
Close the block with }.Add the closing } of the table, enum, group or Project.
Close the settings with ].Add the closing ] after a column's settings.
Separate the settings with commas, and close them with ].Put a comma between settings, such as [pk, increment].
There's no table … Add it, or fix the name.A relationship names a table that doesn't exist. Check the spelling and the case.
… has no column …A relationship names a column that isn't in that table.
There's already a table … Give each table its own name.Rename one of the two tables.
This table already has a column …Rename or remove one of the two columns.
This enum already has the value …Remove the repeated value.
Give the column a type, e.g. id integer.Add a type after the column's name.
Add a column to the table, e.g. id integer [pk].A table needs at least one column.
These columns are already related.Remove the second relationship between the same columns.
A relationship needs two different columns.Point the relationship at another column.
Give the enum at least one value.Add a value to the enum.
… is already in group … A table can be in one group.Take the table out of one of the groups.
… takes a hex colour such as #3498DB. DBML has no colour names.Write the colour as a hex value. See Colours.
Unknown setting …A column takes pk, unique, not null, null, increment, default, check, note and ref. Check the spelling.
Start the line with Table, Ref, Enum, TableGroup, TablePartial, Records, Note or Project.Every block starts with one of these words.

On this page