def downgrade():
"""Downgrade the database to an older revision."""
# ### commands auto generated by Alembic - please adjust! ###
op.create_table('review',
sa.Column('id', sa.INTEGER(), nullable=False),
sa.Column('approved', sa.BOOLEAN(), autoincrement=False, nullable=True),
sa.Column('user', sa.INTEGER(), autoincrement=False, nullable=True),
sa.Column('timestamp', postgresql.TIMESTAMP(), autoincrement=False,
nullable=True),
sa.Column('comment', sa.TEXT(), autoincrement=False, nullable=True),
sa.Column('epv', sa.VARCHAR(length=255), autoincrement=False, nullable=True),
sa.ForeignKeyConstraint(['user'], ['user.id'], name='review_user_fkey'),
sa.PrimaryKeyConstraint('id', name='review_pkey'))
# ### end Alembic commands ###
3fd95b3a69f5_bye_reviews.py 文件源码
python
阅读 30
收藏 0
点赞 0
评论 0
评论列表
文章目录