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

PRIMARY key migration sync isn't working #82

Open
kojiba opened this issue Aug 14, 2017 · 2 comments
Open

PRIMARY key migration sync isn't working #82

kojiba opened this issue Aug 14, 2017 · 2 comments

Comments

@kojiba
Copy link

kojiba commented Aug 14, 2017

If U change bean idea from Compound Primary Key to Composite Partition Key
DDL will not be synced, i.e.

List<RegularStatement> statements = buildSyncStatements(keyspace, session, entityMetadata, syncOptions);

will return empty list, but entity metadata will be builded correct

@valchkou
Copy link
Owner

Thanks for the comment.
Cassandra does not allow to alter the key after the table has been created.
Btw.
I am currently working on rebuilding the module using the latest driver.
Can you add more details on what exactly you doing so I can estimate if this needs to be taken care of

@kojiba
Copy link
Author

kojiba commented Aug 16, 2017

Can U add option to drop table and create a new one if key changed. Like:

@Table(forceUpdateTableIfKeyChanged= true)

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

2 participants