Skip to content

Commit

Permalink
refactor(robot-server): Add missing comment for v2 schema migration (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
SyntaxColoring authored Jan 23, 2024
1 parent fae29a7 commit f194576
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions robot-server/robot_server/persistence/_migrations.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@
- Column("commands", sqlalchemy.PickleType, nullable=True)
- Column("engine_status", sqlalchemy.String, nullable=True)
- Column("_updated_at", sqlalchemy.DateTime, nullable=True)
- Version 2:
This migration adds the following nullable column to the analysis table:
- Column("completed_analysis_as_document", sqlalchemy.String, nullable=True)
It then populates the column with data converted from elsewhere in the table,
so entries should never be NULL in practice even though nullable=True.
"""
import logging
from datetime import datetime, timezone
Expand Down

0 comments on commit f194576

Please sign in to comment.