热度排序, 随机排序

This commit is contained in:
2021-12-18 03:03:45 +08:00
parent 5ea1ebc6d1
commit 286d61fcf8
9 changed files with 81 additions and 235 deletions

View File

@@ -1,28 +0,0 @@
"""record timestap of the lastest comment
Revision ID: 0ad9747d0874
Revises:
Create Date: 2020-09-10 21:06:17.163526
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '0ad9747d0874'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('post', sa.Column('comment_timestamp', sa.Integer(), nullable=True))
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('post', 'comment_timestamp')
# ### end Alembic commands ###