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

Rework creation of autoincrement objects on Oracle #6810

Open
wants to merge 1 commit into
base: 5.0.x
Choose a base branch
from

Conversation

morozov
Copy link
Member

@morozov morozov commented Feb 25, 2025

This PR reworks the code that auto-generates the names of the Oracle objects that implement the auto-increment behavior (the primary key constraint, the trigger and the sequence). It pursuits two goals:

  1. Eliminate some usages of the Schema\Identifier class, which is deprecated and has to be eventually removed.
  2. It lays the groundwork for the replacement of the "primary key index" with PrimaryKeyConstraint, which is to be introduced later.

P.S. I just realized that we don't really have to create a PK as part of setting up auto-increment. For instance, MySQL requires an auto-increment column to be part of the PK, so we can expect the user to explicitly created the PK on Oracle as well. But even if we make this change, the work in this PR won't be thrown away, it will still be relevant for the sequence and the trigger.

@morozov morozov added this to the 5.0.0 milestone Feb 25, 2025
@morozov morozov marked this pull request as ready for review February 25, 2025 00:57
@morozov morozov requested a review from greg0ire February 25, 2025 14:47
@morozov morozov added the Oracle label Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant