69fb10c3d6f0_files_on_disk.py 531B

1234567891011121314151617181920212223242526
  1. """files on disk
  2. Revision ID: 69fb10c3d6f0
  3. Revises: c1cea4bbae16
  4. Create Date: 2017-06-07 17:25:47.306472
  5. """
  6. from alembic import op
  7. from depot.fields.sqlalchemy import UploadedFileField
  8. import sqlalchemy as sa
  9. # revision identifiers, used by Alembic.
  10. revision = '69fb10c3d6f0'
  11. down_revision = 'c1cea4bbae16'
  12. def upgrade():
  13. op.add_column('content_revisions',
  14. sa.Column('depot_file',
  15. UploadedFileField))
  16. def downgrade():
  17. op.drop_column('content_revisions', 'depot_file')