Verified Commit 0549e9d8 authored by Kristyna Pekarkova's avatar Kristyna Pekarkova Committed by Peter Stanko
Browse files

Fix schema, added version_id to review item

parent 6550027f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@ import sqlalchemy as sa

# revision identifiers, used by Alembic.
revision = '949bc914e571'
down_revision = '6347503cdaef'
down_revision = 'f21d6efeef88'
branch_labels = None
depends_on = None

+1 −1
Original line number Diff line number Diff line
@@ -28,7 +28,7 @@ class NestedCollection:
        'Submission': ('id', 'state','created_at', 'updated_at', 'result', 'points',
                       *_in('user', ['username', 'codename', 'name', 'uco', 'id']),
                       *_in('project', DEFAULTS), *_in('course', DEFAULTS)),
        'ReviewItem': ('id', 'review.id', 'line', 'content', 'file',
        'ReviewItem': ('id', 'review.id', 'line', 'content', 'file', 'version_id',
                       *_in('user', ['id', 'username', 'uco', 'name'])),
        'Secret': ('id', 'name', 'expires_at')
    }