We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2cb6d8 commit cdaf928Copy full SHA for cdaf928
migrations/0001_init.up.sql
@@ -1,6 +1,6 @@
1
CREATE TABLE beamline (
2
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
3
- name TEXT UNIQUE NOT NULL,
+ name TEXT UNIQUE NOT NULL CHECK (length(name) > 0),
4
-- Default to 0 so scan numbering starts at 1
5
scan_number INTEGER NOT NULL DEFAULT 0 CHECK (scan_number >= 0),
6
0 commit comments