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

Create migration for converting to bigint ids #16057

Merged
merged 3 commits into from
Sep 12, 2023
Merged

Conversation

prha
Copy link
Member

@prha prha commented Aug 23, 2023

Summary & Motivation

Creates an optional schema migration (may incur downtime) to convert all table ids from int => bigint.

This is run outside of the alembic machinery, since it is optional and can be applied at any time. This uses the db inspector to convert the id column of any known tables.

How I Tested These Changes

BK

Copy link
Member

@alangenfeld alangenfeld left a comment

Choose a reason for hiding this comment

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

is this somewhat idempotent? if a user bails or the process crashes can you start it again and have it skip over whats been done and finish out what has not?

@prha prha merged commit bf6ec62 into master Sep 12, 2023
1 check passed
@prha prha deleted the prha/bigint_migration branch September 12, 2023 22:42
zyd14 pushed a commit to zyd14/dagster that referenced this pull request Sep 15, 2023
## Summary & Motivation
Creates an optional schema migration (may incur downtime) to convert all
table ids from int => bigint.

This is run outside of the alembic machinery, since it is optional and
can be applied at any time. This uses the db inspector to convert the
`id` column of any known tables.

## How I Tested These Changes
BK
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