Skip to content

Commit

Permalink
adding coulumns to the units table
Browse files Browse the repository at this point in the history
  • Loading branch information
Rakesh-Ranga-Buram committed Nov 27, 2024
1 parent c29b70c commit a9380c9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/server/sql/unit/create_units_table.sql
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,7 @@ CREATE TABLE IF NOT EXISTS units (
suffix VARCHAR(50) DEFAULT '',
displayable displayable_type NOT NULL,
preferred_display BOOLEAN NOT NULL,
note TEXT
note TEXT,
min_val FLOAT NOT NULL DEFAULT -9007199254740991 CHECK (min_val::FLOAT >= -9007199254740991),
max_val FLOAT NOT NULL DEFAULT 9007199254740991 CHECK (max_val::FLOAT <= 9007199254740991)
);

0 comments on commit a9380c9

Please sign in to comment.