24 lines
471 B
Python
24 lines
471 B
Python
"""quiz_attempts: simpan ringkasan per-soal (review-after-refresh + breakdown kategori)
|
|
|
|
Revision ID: 0003
|
|
Revises: 0002
|
|
Create Date: 2026-08-14
|
|
"""
|
|
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
revision = "0003"
|
|
down_revision = "0002"
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade() -> None:
|
|
op.add_column("quiz_attempts", sa.Column("answers_json", sa.Text(), nullable=True))
|
|
|
|
|
|
def downgrade() -> None:
|
|
op.drop_column("quiz_attempts", "answers_json")
|