Skip to content

Conversation

vincent-pochet
Copy link
Collaborator

Context

This PR is part of the epic to add organization_id on all tables of the application

Description

The current one is adding the field to the integration_mappings table.
For now the field allows null values. A job to back-fill it has been added.
In a later pull request the not null constraint will be added

Because of old invoices that got organization_sequential_id copied into
billining_entity_sequential_id, we got not uniq values in
billing_entity_sequential_id. For now we're adding this index as not
uniq, will add uniqueness after the old invoices are fixed
Another solution: add two indexes: before 2025 - all values, after 2025
with uniqueness...
@vincent-pochet vincent-pochet force-pushed the misc-integration-mappings-organization-id branch from 1c856a7 to e7d1961 Compare May 16, 2025 12:51
@vincent-pochet vincent-pochet merged commit 4bd64c0 into main May 16, 2025
14 checks passed
@vincent-pochet vincent-pochet deleted the misc-integration-mappings-organization-id branch May 16, 2025 12:56
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.

3 participants