Skip to content
Snippets Groups Projects
Unverified Commit 40022854 authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner
Browse files

dbinit: Add constraint about the fwup_sets.hashsize

parent 2bbbb6f8
No related merge requests found
......@@ -420,7 +420,8 @@ CREATE TABLE fwup_sets (
type CHAR NOT NULL,
maxsize INT NOT NULL,
hashsize INT NOT NULL,
CHECK(maxsize > 0)
CHECK(maxsize > 0),
CHECK(hashsize >= maxsize)
);
CREATE TABLE fwup_addresses (
set TEXT NOT NULL,
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment