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

incorrect rse_expression length in rule_history* migrations #5846

Closed
rcarpa opened this issue Aug 29, 2022 · 1 comment · Fixed by #5892
Closed

incorrect rse_expression length in rule_history* migrations #5846

rcarpa opened this issue Aug 29, 2022 · 1 comment · Fixed by #5892
Assignees
Milestone

Comments

@rcarpa
Copy link
Contributor

rcarpa commented Aug 29, 2022

Motivation

The rse_expression length in "rule history" and "recent rule history" tables doesn't correspond to what is expected in models:

Ex:

rse_expression = Column(String(3000))

vs

This results in the table being created with wrong string length when applying migrations. Also, the length allowed in rules is different from the one allowed in rule_history.

Modification

Add another migration which correctly extends the column to have the correct length everywhere.

@bari12
Copy link
Member

bari12 commented Aug 29, 2022

I think in the oracle schema we actually defined this correctly.

RSE_EXPRESSION VARCHAR2(3000),

Nevertheless this needs to be corrected for everyone else.

@dchristidis can you take care of this?

dchristidis added a commit to dchristidis/rucio that referenced this issue Sep 16, 2022
A previous migration had the `rse_expression` column of the
`rules_hist_recent` and `rules_history` tables be created as
`String(255)`. Instead the models define them as `String(3000)`. This
commit fixes the inconsistency in the lengths.
dchristidis added a commit to dchristidis/rucio that referenced this issue Sep 23, 2022
A previous migration had the `rse_expression` column of the
`rules_hist_recent` and `rules_history` tables be created as
`String(255)`. Instead the models define them as `String(3000)`. This
commit fixes the inconsistency in the lengths.
@dchristidis dchristidis linked a pull request Sep 23, 2022 that will close this issue
bari12 added a commit that referenced this issue Sep 30, 2022
…ect_rse_expression_length

Database: Correct `rse_expression` length #5846
@bari12 bari12 added this to the 1.30.0 "The Donkeynator" milestone Sep 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants