Fix frontend errors and add timestamp support to comments

This commit is contained in:
Mistral Vibe
2026-03-29 22:10:21 +02:00
parent a8aba72b3a
commit a80c936537
2 changed files with 4 additions and 22 deletions

View File

@@ -40,6 +40,9 @@ def upgrade() -> None:
"tags", ARRAY(sa.Text()), nullable=False, server_default="{}", "tags", ARRAY(sa.Text()), nullable=False, server_default="{}",
)) ))
# Add timestamp column to song_comments
op.add_column("song_comments", sa.Column("timestamp", sa.Float(), nullable=True))
def downgrade() -> None: def downgrade() -> None:
op.drop_column("songs", "tags") op.drop_column("songs", "tags")
@@ -47,3 +50,4 @@ def downgrade() -> None:
op.drop_column("songs", "session_id") op.drop_column("songs", "session_id")
op.drop_index("ix_rehearsal_sessions_band_id", table_name="rehearsal_sessions") op.drop_index("ix_rehearsal_sessions_band_id", table_name="rehearsal_sessions")
op.drop_table("rehearsal_sessions") op.drop_table("rehearsal_sessions")
op.drop_column("song_comments", "timestamp")

View File

@@ -1,22 +0,0 @@
"""Add timestamp to song_comments.
Revision ID: 0005
Revises: 0004
Create Date: 2026-03-29
"""
from alembic import op
import sqlalchemy as sa
revision = "0005"
down_revision = "0004"
branch_labels = None
depends_on = None
def upgrade() -> None:
op.add_column("song_comments", sa.Column("timestamp", sa.Float(), nullable=True))
def downgrade() -> None:
op.drop_column("song_comments", "timestamp")