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

change memberships_history pkey #3083

Merged
merged 1 commit into from
Oct 21, 2024

Conversation

bolyachevets
Copy link
Collaborator

Issue #:
https://github.com/bcgov/entity/issues/

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the sbc-auth license (Apache 2.0).

@bolyachevets bolyachevets requested a review from pwei1018 October 18, 2024 17:15
Copy link

@@ -147,7 +147,7 @@ def upgrade():
sa.Column("modified_by_id", sa.Integer(), autoincrement=False, nullable=True),
sa.Column("version", sa.Integer(), autoincrement=False, nullable=False),
sa.Column("changed", sa.DateTime(), nullable=True),
sa.PrimaryKeyConstraint("id", "version"),
sa.PrimaryKeyConstraint("id", "changed"),
Copy link
Collaborator

Choose a reason for hiding this comment

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

new migration to handle this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

already changed the key manually. wanted to verify it in dev/test first

Copy link
Collaborator

Choose a reason for hiding this comment

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

looks like it will remain busted on my computer until I change it or dump the db then haha

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

sorry for the inconvenience, that migration file already had a few updates, thought no one will notice

Copy link
Collaborator

Choose a reason for hiding this comment

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

all good haha

@bolyachevets bolyachevets merged commit 78dbf88 into bcgov:main Oct 21, 2024
4 of 6 checks passed
@bolyachevets bolyachevets deleted the memberships_history_pkey branch October 21, 2024 16:19
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