7dbb6f237041_.py 938 B

12345678910111213141516171819202122232425262728293031323334
  1. """Add Reconstruction model
  2. Revision ID: 7dbb6f237041
  3. Revises: 1d40d3fc3d0c
  4. Create Date: 2016-10-07 11:56:14.711593
  5. """
  6. # revision identifiers, used by Alembic.
  7. revision = '7dbb6f237041'
  8. down_revision = '1d40d3fc3d0c'
  9. from alembic import op
  10. import sqlalchemy as sa
  11. def upgrade():
  12. ### commands auto generated by Alembic - please adjust! ###
  13. op.create_table('reconstructions',
  14. sa.Column('id', sa.Integer(), nullable=False),
  15. sa.Column('flats', sa.String(), nullable=True),
  16. sa.Column('darks', sa.String(), nullable=True),
  17. sa.Column('projections', sa.String(), nullable=True),
  18. sa.Column('output', sa.String(), nullable=True),
  19. sa.ForeignKeyConstraint(['id'], ['processes.id'], ),
  20. sa.PrimaryKeyConstraint('id')
  21. )
  22. ### end Alembic commands ###
  23. def downgrade():
  24. ### commands auto generated by Alembic - please adjust! ###
  25. op.drop_table('reconstructions')
  26. ### end Alembic commands ###