Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scripts/get_db_schema_version.py doesn't work #4434

Open
sviscapi opened this issue Jul 3, 2019 · 3 comments
Open

scripts/get_db_schema_version.py doesn't work #4434

sviscapi opened this issue Jul 3, 2019 · 3 comments

Comments

@sviscapi
Copy link

sviscapi commented Jul 3, 2019

Bug Report

iRODS Version, OS and Version

iRODS 4.2.6, CentOS 7.6 x86_64

What did you try to do?

Run scripts/get_db_schema_version.py to be sure about the DB schema version in iRODS 4.2.5 / 4.2.6. Was there an update from v5 to v6 ?

Expected behavior

python get_db_schema_version.py

Your DB schema version is v5 (or v6 ?)

Observed behavior (including steps to reproduce, if applicable)

python get_db_schema_version.py
Traceback (most recent call last):
  File "get_db_schema_version.py", line 26, in <module>
    print(get_current_schema_version(irods_config))
  File "get_db_schema_version.py", line 15, in get_current_schema_version
    return irods_config.get_schema_version_in_database()
AttributeError: 'IrodsConfig' object has no attribute 'get_schema_version_in_database'
@trel
Copy link
Member

trel commented Jul 10, 2019

iRODS 4.2.5 bumped the database_schema_version from 5 to 6 (adding two indices for #4181)

We'll look into how these scripts can be run more standalone... or mark them as not intended for that usage.

@sviscapi
Copy link
Author

@trel : thanks for your reply, and sorry for the noise. I thought those were standalone scripts, but it seems I got it wrong. Cheers, Samuel from CINES (Montpellier, France)

@trel
Copy link
Member

trel commented Jul 19, 2019

No problem. We'll leave this open for now as a possible bit of documentation work.

@trel trel added this to the 4.2.7 milestone Jul 19, 2019
@trel trel modified the milestones: 4.2.7, 4.2.8 Nov 27, 2019
@trel trel modified the milestones: 4.2.8, 4.2 Backlog Mar 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants