Skip to content

Commit

Permalink
Remove enum constraint, for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
SyntaxColoring committed Nov 20, 2024
1 parent 29617cc commit bf9b701
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion robot-server/robot_server/persistence/tables/schema_8.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,11 @@ class CommandStatusSQLEnum(enum.Enum):
# nullable=True because it was easier for the migration to add the column
# this way. This is not intended to ever be null in practice.
nullable=True,
create_constraint=True,
# todo(mm, 2024-11-20): We want create_constraint=True here. Something
# about the way we compare SQL in test_tables.py is making that difficult--
# even when we correctly add the constraint in the migration, the SQL
# doesn't compare equal to what create_constraint=True here would emit.
create_constraint=False,
),
),
sqlalchemy.Index(
Expand Down

0 comments on commit bf9b701

Please sign in to comment.