fix: column name in constraint
This commit is contained in:
@@ -86,7 +86,7 @@ CREATE TABLE workout_sets (
|
|||||||
seconds SMALLINT,
|
seconds SMALLINT,
|
||||||
weight_kg NUMERIC(5,2),
|
weight_kg NUMERIC(5,2),
|
||||||
type TEXT NOT NULL DEFAULT 'working'
|
type TEXT NOT NULL DEFAULT 'working'
|
||||||
CHECK (metric IN ('warm-up', 'working', 'drop')),
|
CHECK (type IN ('warm-up', 'working', 'drop')),
|
||||||
note TEXT,
|
note TEXT,
|
||||||
modified_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
|
modified_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user