def upgrade():
# commands auto generated by Alembic - please adjust! #
op.create_table(
'image',
sa.Column('created_at', sa.DateTime(), nullable=True),
sa.Column('updated_at', sa.DateTime(), nullable=True),
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('project_id', sa.String(length=255), nullable=True),
sa.Column('user_id', sa.String(length=255), nullable=True),
sa.Column('uuid', sa.String(length=36), nullable=True),
sa.Column('image_id', sa.String(length=255), nullable=True),
sa.Column('repo', sa.String(length=255), nullable=True),
sa.Column('tag', sa.String(length=255), nullable=True),
sa.Column('size', sa.String(length=255), nullable=True),
sa.PrimaryKeyConstraint('id'),
sa.UniqueConstraint('repo', 'tag', name='uniq_image0repotag'),
mysql_charset='utf8',
mysql_engine='InnoDB'
)
# end Alembic commands #
评论列表
文章目录