Skip to content
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

fix(grouping): make id bigint sequence #924

Merged
merged 9 commits into from
Jul 18, 2024
Merged

Conversation

trillville
Copy link
Contributor

No description provided.

@trillville trillville changed the title make id bigint sequence fix(grouping): make id bigint sequence Jul 17, 2024
@trillville trillville enabled auto-merge (squash) July 18, 2024 00:59
@trillville trillville disabled auto-merge July 18, 2024 01:04
@trillville trillville enabled auto-merge (squash) July 18, 2024 01:14
@trillville trillville disabled auto-merge July 18, 2024 03:24
{"postgresql_partition_by": "HASH (project_id)"},
{
"postgresql_partition_by": "HASH (project_id)",
"listeners": [("after_create", create_grouping_partition)],
Copy link
Member

Choose a reason for hiding this comment

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

Effectively, this will only run for tests. Tests use the declarative form here, but production and development uses migrations (alembic)

excluded_matches = config.get_section("exclude").get("matches", "").split(",")


def include_object(
Copy link
Member

Choose a reason for hiding this comment

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

Teach alembic to just ignore objects in the database that match given patterns so that it doesn't try to remove them.

@corps corps enabled auto-merge (squash) July 18, 2024 04:10
@corps corps merged commit 9d107a9 into main Jul 18, 2024
5 checks passed
@corps corps deleted the trillville/bigserial-migration branch July 18, 2024 04:16
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.

2 participants