Fix history.data nullability
1 files changed, 2 insertions(+), 0 deletions(-) M alembic/versions/e43080100a6f_improve_history.py
M alembic/versions/e43080100a6f_improve_history.py => alembic/versions/e43080100a6f_improve_history.py +2 -0
@@ 26,7 26,9 @@ def upgrade(): WHERE song IS NULL""") op.execute("""DELETE FROM history WHERE song IS NULL""") op.alter_column('history', 'song', nullable=False) op.alter_column('history', 'data', nullable=True) def downgrade(): op.drop_column('history', 'song') op.alter_column('history', 'data', nullable=False)