Skip to content
Snippets Groups Projects
Commit f57a4b6b authored by Charlotte Hausman's avatar Charlotte Hausman
Browse files

fix vlass cube caching permissions issue

parent 7b987f61
No related branches found
No related tags found
3 merge requests!1282Merge in main,!1281Draft: Rebase on main,!1260fix vlass cube caching permissions issue
Pipeline #8871 canceled
"""correcting vlass cube permissions
Revision ID: adfaf1cc8be1
Revises: 2cfbbef4b440
Create Date: 2023-03-16 13:22:19.170828
"""
from alembic import op
# revision identifiers, used by Alembic.
revision = "adfaf1cc8be1"
down_revision = "2cfbbef4b440"
branch_labels = None
depends_on = None
old_post = """cd ../products"""
new_post = """cd ../products
chmod 777 ../products"""
def upgrade():
op.execute(
f"""
UPDATE workflow_templates
SET content = replace(convert_from(content, 'utf8'), E'{old_post}', E'{new_post}')::bytea
WHERE filename = 'vlass_coarse_post.sh'
"""
)
def downgrade():
op.execute(
f"""
UPDATE workflow_templates
SET content = replace(convert_from(content, 'utf8'), E'{new_post}', E'{old_post}')::bytea
WHERE filename = 'vlass_coarse_post.sh'
"""
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment