-
Notifications
You must be signed in to change notification settings - Fork 341
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
[Question] How to generate ALTER COLUMN instructions to set default values to sequences nextval? #1814
Comments
Use |
I'm using ora2pg v23.2. I'm afraid this export type is not available. Does export type SEQUENCE_VALUES generate the ALTER TABLE ... ALTER COLUMN id SET DEFAULT nexval... instructions? |
It is available since version 24.0:
|
Thank you very much. Since I'm looking for a way to generate the set default nextval instructions, I'll keep with version 23. I think I'll generate those instructions by hand. |
Hi everyone,
I'm taking my first steps with this amazing tool.
I'm trying to migrate an Oracle old database (of an old OTRS 5 instance). In this old database, that has almost 158 tables, most id fields (private keys) are autoincremented using sequences and triggers to insert a sequence nextval into the id field.
ora2pg is doing just fine generating the sequences and updating their current values. But I'm missing the alter column instructions to set default values to the sequences nextval in PostgreSQL (or, maybe, convert all this fields to type identity or serial).
Is that in the scope of ora2pg? Any thoughts on that?
Thanks in advance!
Samuel
The text was updated successfully, but these errors were encountered: