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(8273) Adding @Generated('uuid') will now generate a migration to add the DEFAULT value #8274

Merged
merged 4 commits into from Feb 12, 2022

Conversation

edeesis
Copy link
Contributor

@edeesis edeesis commented Oct 14, 2021

Description of change

On changing a column from non-generated to generated for UUIDs, add the uuid generator as the default to the column.

Fixes #5898
Fixes #7195
Fixes #8273

Pull-Request Checklist

  • Code is up-to-date with the master branch
  • npm run lint passes with this change
  • npm run test passes with this change
  • This pull request links relevant issues as Fixes #0000
  • There are new or updated unit tests validating the change
  • Documentation has been updated to reflect this change
  • The new commits follow conventions explained in CONTRIBUTING.md

# Conflicts:
#	src/driver/postgres/PostgresQueryRunner.ts
implemented fix for generation removal;
improved tests;
@AlexMesser AlexMesser merged commit 4208393 into typeorm:master Feb 12, 2022
@AlexMesser
Copy link
Collaborator

thank you for contribution!

@sentientmachin3
Copy link

sentientmachin3 commented Jun 5, 2023

Which patch is this in for version 0.2.x?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants