Skip to content

SUBMIT-768 Track_phases table fixes#806

Draft
dinesh-aot wants to merge 6 commits intobcgov:developfrom
dinesh-aot:SUBMIT-768
Draft

SUBMIT-768 Track_phases table fixes#806
dinesh-aot wants to merge 6 commits intobcgov:developfrom
dinesh-aot:SUBMIT-768

Conversation

@dinesh-aot
Copy link
Collaborator

No description provided.

@dinesh-aot dinesh-aot marked this pull request as draft February 27, 2026 21:56
@dinesh-aot dinesh-aot changed the title Track_phases table fixes SUBMIT-768 Track_phases table fixes Feb 27, 2026
# ### commands auto generated by Alembic - please adjust! ###
# Drop unnecessary indexes from small tables
with op.batch_alter_table('package_types', schema=None) as batch_op:
batch_op.drop_index('idx_package_types_name')
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't feel like this index would be useful considering the size possible data in this table.


# Create new indexes for packages
op.create_index('idx_packages_account_project_id', 'packages', ['account_project_id'])
op.create_index(
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Created this as partial index as there is a chance that this field can contain NULL values in case of Management Plan, which will break the index.

@dinesh-aot dinesh-aot marked this pull request as ready for review February 28, 2026 00:49
@dinesh-aot dinesh-aot marked this pull request as draft March 2, 2026 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant