fix: quote NM/NN column names in CHECK constraints to match quoted identifiers
This commit is contained in:
@@ -170,13 +170,13 @@ class Session(Base):
|
|||||||
Index("ix_sessions_website_id", "website_id"),
|
Index("ix_sessions_website_id", "website_id"),
|
||||||
Index("ix_sessions_tryout_id", "tryout_id"),
|
Index("ix_sessions_tryout_id", "tryout_id"),
|
||||||
Index("ix_sessions_is_completed", "is_completed"),
|
Index("ix_sessions_is_completed", "is_completed"),
|
||||||
# Score constraints [0, 1000]
|
# Score constraints [0, 1000] - quote column names to match quoted identifiers
|
||||||
CheckConstraint(
|
CheckConstraint(
|
||||||
"NM IS NULL OR (NM >= 0 AND NM <= 1000)",
|
'"NM" IS NULL OR ("NM" >= 0 AND "NM" <= 1000)',
|
||||||
"ck_nm_range",
|
"ck_nm_range",
|
||||||
),
|
),
|
||||||
CheckConstraint(
|
CheckConstraint(
|
||||||
"NN IS NULL OR (NN >= 0 AND NN <= 1000)",
|
'"NN" IS NULL OR ("NN" >= 0 AND "NN" <= 1000)',
|
||||||
"ck_nn_range",
|
"ck_nn_range",
|
||||||
),
|
),
|
||||||
# IRT theta constraint [-3, +3]
|
# IRT theta constraint [-3, +3]
|
||||||
|
|||||||
Reference in New Issue
Block a user