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

DDl-Refactor: Add DB2 Reorg support and history support #2596

Merged
merged 6 commits into from
Mar 16, 2022

Conversation

rPraml
Copy link
Contributor

@rPraml rPraml commented Mar 15, 2022

This PR moves Ebean to a state where it has working DB2 migration (with proper reorg-table statements. See #2556)

We have also a working history now: DB2: HistorySupport added

Unfortunately, DB2 needs an exact copy of the history table. So it is not allowed to have not null column in live table and null column in history table as it is common in trigger based history

@rbygrave There is currently a hack syncExact = platformDdl.getPlatform().isPlatform(Platform.DB2) for DB2
I would change that for all platforms. This means:

  • If you want to alter a column from null to not null, you have to migrate also the null values in history table.

Docker DB2 test is passing now

@rbygrave
Copy link
Member

Well done - a very big effort here !!

@rbygrave rbygrave added this to the 12.16.0 milestone Mar 16, 2022
@rbygrave rbygrave merged commit 00a1324 into ebean-orm:master Mar 16, 2022
@rbygrave rbygrave linked an issue Mar 16, 2022 that may be closed by this pull request
@rPraml rPraml deleted the ddl-refactor8 branch August 10, 2023 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DB2 reorg table support
2 participants