def upgrade():
"""Upgrade the database to a newer revision."""
# ### commands auto generated by Alembic - please adjust! ###
op.create_table('app_stacks',
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('stack_json', postgresql.JSONB(), nullable=False),
sa.PrimaryKeyConstraint('id'))
op.create_table('similar_stacks',
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('appstack_id', sa.Integer(), nullable=True),
sa.Column('dependency_list', postgresql.JSONB(), nullable=False),
sa.ForeignKeyConstraint(['appstack_id'], ['app_stacks.id'], ),
sa.PrimaryKeyConstraint('id'))
# ### end Alembic commands ###
9d605c7725d8_add_app_stack_tables.py 文件源码
python
阅读 21
收藏 0
点赞 0
评论 0
评论列表
文章目录