Skip to content

912 : SchemaMigrator/SchemaValidator support for MS SQL Server #967

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

Closed

Conversation

gbadner
Copy link
Contributor

@gbadner gbadner commented Sep 21, 2021

#912

Includes #966

Requires ORM PR: hibernate/hibernate-orm#4235

@gbadner gbadner force-pushed the 912-schema-update-sql-server-1 branch from 28e69da to 49151ec Compare September 21, 2021 19:56
@gbadner
Copy link
Contributor Author

gbadner commented Sep 21, 2021

I pushed a minor update, and force-pushed to resolve conflict.

@gbadner gbadner requested review from DavideD and blafond September 21, 2021 19:58
Copy link
Member

@blafond blafond left a comment

Choose a reason for hiding this comment

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

Pulled latest and tests pass locally. LGTM

@gbadner gbadner requested a review from blafond September 21, 2021 20:49
@DavideD
Copy link
Member

DavideD commented Sep 22, 2021

This PR doesn't fail if I test it using ORM 5.6.0.Beta2. Is that correct?

@gbadner
Copy link
Contributor Author

gbadner commented Sep 22, 2021

@DavideD, it will still fail with ORM 5.6.Beta2. It requires hibernate/hibernate-orm#4235, which has not been merged yet.

@DavideD
Copy link
Member

DavideD commented Sep 22, 2021

Is it supposed to fail for MSSQL and Db2?

@DavideD
Copy link
Member

DavideD commented Sep 22, 2021

I've rebased this branch to the latest changes and sent a new PR that uses the grad.properties in master: #970

@DavideD
Copy link
Member

DavideD commented Sep 22, 2021

Is it supposed to fail for MSSQL and Db2?

I've answered myself, the test is only for MSSQL


@Test
public void testValidationSucceed(TestContext context) {
Configuration createHbm2ddlConf = constructConfiguration( "validate" );
Copy link
Member

@DavideD DavideD Sep 22, 2021

Choose a reason for hiding this comment

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

I guess this should be called validateHbm2ddlConf

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I would prefer the generic configuration, as used in the other tests.

WDYT?

Copy link
Member

@DavideD DavideD Sep 22, 2021

Choose a reason for hiding this comment

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

I find validateHbm2ddlConf clearer but configuration works as well.

I'm happy as long as it is not createHbm2ddlConf :-)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I prefer more generic names when it's unambiguous, to avoid future copy/paste errors.

Anyhow, I've fixed it in #970

// actually checks).
@Test
public void testValidationFails(TestContext context) {
Configuration createHbm2ddlConf = constructConfiguration( "validate" );
Copy link
Member

Choose a reason for hiding this comment

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

I guess this should be called validateHbm2ddlConf

Copy link
Contributor Author

@gbadner gbadner Sep 22, 2021

Choose a reason for hiding this comment

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

I would prefer the generic configuration, as used in the other tests.

WDYT?

@gbadner gbadner requested a review from DavideD September 22, 2021 17:05
@gbadner
Copy link
Contributor Author

gbadner commented Sep 22, 2021

Oops, didn't mean to request another review.

@DavideD, I'm closing this PR, and #970 will supersede this one, since that one has been rebased with the Vert.X 4.1.4 upgrade.

I'll change the argument names to configuration and push a commit to that PR, assuming I have the privileges to do so.

@gbadner gbadner closed this Sep 22, 2021
@gbadner gbadner deleted the 912-schema-update-sql-server-1 branch September 22, 2021 17:25
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.

3 participants