Migration to change filename from `irb_documents` to `documents` in the database

This commit is contained in:
mike cullerton 2021-07-07 13:27:57 -04:00
parent f1a15ef8e9
commit 1c9db16bff
1 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,25 @@
"""change irb_documents to documents
Revision ID: c16d3047abbe
Revises: bbf064082623
Create Date: 2021-07-07 13:07:53.966102
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'c16d3047abbe'
down_revision = 'bbf064082623'
branch_labels = None
depends_on = None
def upgrade():
pass
op.execute("update file set name = 'documents.xlsx' where name='irb_documents.xlsx'")
def downgrade():
op.execute("update file set name = 'irb_documents.xlsx' where name='documents.xlsx'")