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

Plugin ignores schema #150

Open
ioannisGiak89 opened this issue Sep 25, 2018 · 0 comments
Open

Plugin ignores schema #150

ioannisGiak89 opened this issue Sep 25, 2018 · 0 comments

Comments

@ioannisGiak89
Copy link

ioannisGiak89 commented Sep 25, 2018

Steps to Reproduce

  1. Configure an app to use default schema
environments:
    development:
        dataSources:
            dataSource:
                username: <a_name>
                password: <a_pass>
                driverClassName: org.postgresql.Driver
                dbCreate: none
                url: <jdbc link to DB>
                initialize: false
                hibernate:
                    dialect: net.kaleidos.hibernate.PostgresqlExtensionsDialect
                    default_schema: default
  1. Create a new domain class and specify different schema (than the default) in the table mapping property
class Staff {
    Boolean isCurrent
    String name

    static mapping = {
        table schema: 'other_than_default'
        id generator: 'sequence', params: [sequence: 'staff_seq']
        version false
    }
}
  1. Then run
grails dbm-gorm-diff --defaultSchema=default

Expected Behaviour

The plugin shouldn't create migrations for the new domain class

Actual Behaviour

The plugin generates migrations for the new domain class

Environment Information

  • Operating System: Alpine Linux 3.7 (Docker image)
  • Grails Version: 3.3.5
  • Plugin Version: 3.0.3
  • Database: PSQL 9.5
  • JDK Version: 8
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

No branches or pull requests

1 participant