-
Notifications
You must be signed in to change notification settings - Fork 16
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
v0.73.6 has NotNullViolation change in its alembic version #2745
Comments
/priority critical-urgent |
I will look into it, thanks for opening the issue. The implementation I proposed in #2738 should have caused it. What we would need is ideally support for NULL NOT DISTINCT in UniqueConstraint as already proposed in sqlalchemy/sqlalchemy#8240 upstream |
/sig stack-guidance |
Closing following the tables, it can be noticed that the The |
With |
Bug description
The data sync with the latest storage version v0.73.6 is causing NotNullViolation.
case:
op.alter_column("has_symbol", "software_environment_id", existing_type=sa.INTEGER(), nullable=False)
cant be used as
psycopg2.errors.NotNullViolation: column "software_environment_id" contains null values
Steps to Reproduce
Steps to reproduce the behavior:
Actual behavior
data schema update is failing with NotNull Violation
Expected behavior
smooth data schema update
Environment information
Storage version v0.73.6
revision head: 'bf9ea2a38b01'
database head: '7f7411e247d6'
Additional context
Based on condition https://github.com/thoth-station/storages/blob/master/thoth/storages/graph/postgres.py#L5554, if an external software environment id is present then software environment id is set null.
However
storages/thoth/storages/graph/models.py
Line 1291 in f8d5406
The text was updated successfully, but these errors were encountered: