WIP: Add timestamp to comments and fix frontend errors
This commit is contained in:
22
api/alembic/versions/0005_add_timestamp_to_song_comments.py
Normal file
22
api/alembic/versions/0005_add_timestamp_to_song_comments.py
Normal file
@@ -0,0 +1,22 @@
|
||||
"""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")
|
||||
Reference in New Issue
Block a user