You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
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.
Motivation
The rse_expression length in "rule history" and "recent rule history" tables doesn't correspond to what is expected in models:
Ex:
rucio/lib/rucio/db/sqla/models.py
Line 1143 in 46dc0d0
vs
rucio/lib/rucio/db/sqla/migrate_repo/versions/384b96aa0f60_created_rule_history_tables.py
Line 56 in 2a41a64
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.
The text was updated successfully, but these errors were encountered: