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

DB Migration DDL generation for UUID type when generating multiple platforms #769

Closed
rbygrave opened this issue Jul 11, 2016 · 0 comments
Closed
Assignees
Labels
Milestone

Comments

@rbygrave
Copy link
Member

When generating a DB migration targeting multiple platforms ... and using UUID types the generated type of the UUID properties is controlled by the default platform type (rather than each specific platform).

Expected behavior

We expected the appropriate DDL column definition for "logical UUID" types based on the platform. So H2 and Postgres have native UUID type support but MySql, Oracle, Sqlite don't and we would expect VARCHAR(40), VARCHAR2(40) etc or BINARY(16) depending on the ServerConfig DbUuid setting.

Steps to reproduce

    DbMigration dbMigration = new DbMigration();
    dbMigration.addPlatform(DbPlatformName.POSTGRES, "postgres2");
    dbMigration.addPlatform(DbPlatformName.SQLITE, "sqlite2");
    dbMigration.addPlatform(DbPlatformName.ORACLE, "oracle");
    dbMigration.addPlatform(DbPlatformName.ORACLE, "mysql");
    dbMigration.generateMigration();
@rbygrave rbygrave added the bug label Jul 11, 2016
@rbygrave rbygrave added this to the 7.17.2 milestone Jul 11, 2016
@rbygrave rbygrave self-assigned this Jul 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant