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

Use migration new column as identity for backfill #321

Open
eminano opened this issue Mar 18, 2024 · 0 comments
Open

Use migration new column as identity for backfill #321

eminano opened this issue Mar 18, 2024 · 0 comments

Comments

@eminano
Copy link

eminano commented Mar 18, 2024

Currently a migration with a backfill is not allowed on tables that do not have a unique not null column. Ideally if the migration requiring the backfill adds a unique not null column, the backfill should be possible.

Related conversation and test covering this case:
https://xata-hq.slack.com/archives/C05TR0HPQ9Y/p1709115340867789
#298

Investigate if it's possible to use a new column as the identity for a backfill (it would be full of NULL values at the time of the backfill).

@eminano eminano changed the title Allow up on table without unique not null column if one added in migration Use migration new column as identity for backfill Mar 18, 2024
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

No branches or pull requests

1 participant