This document is for an old release of Galaxy. You can alternatively view this page in the latest release if it exists or view the top of the latest release's documentation.

Source code for galaxy.model.migrate.versions.0115_longer_user_password_field

Expand the length of the password fields in the galaxy_user table to allow for other hasing schemes
import logging

from sqlalchemy import MetaData, String, Table

log = logging.getLogger(__name__)

[docs]def upgrade(migrate_engine): meta = MetaData(bind=migrate_engine) user = Table('galaxy_user', meta, autoload=True) try: user.c.password.alter(type=String(255)) except Exception: log.exception("Altering password column failed")
[docs]def downgrade(migrate_engine): pass