Skip to content

Commit

Permalink
Remove altering of db constraint in migration
Browse files Browse the repository at this point in the history
Naming of db constraint was altered in 01e7b01. So this would cause
issues with this migration is some environments. We won't change this
constraint and instead just wait for deprecated table to be removed
in https://tacc-main.atlassian.net/browse/WG-377
  • Loading branch information
nathanfranklin committed Oct 1, 2024
1 parent 9511158 commit 5e8f52f
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,7 @@ def upgrade():
finally:
session.close()

# Drop the unique constraint
op.drop_constraint('observable_data_projects_system_id_path_key', 'observable_data_projects')


def downgrade():
op.drop_column('projects', 'watch_users')
op.drop_column('projects', 'watch_content')
op.create_unique_constraint('observable_data_projects_system_id_path_key', 'observable_data_projects', ['system_id', 'path'])

0 comments on commit 5e8f52f

Please sign in to comment.