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

use snapshot table name in its primary key name #181

Merged
merged 2 commits into from Apr 24, 2018

Conversation

notNotDaniel
Copy link
Contributor

The default snapshot table schema used a fixed name (snapshot_pk) for the primary key, which makes it impossible to have more than one snapshot table in the same schema (since they both try to create the primary key with the same name). This change makes the name based on the configured table name, so that more than one can coexist.

Thanks.

@WellingR
Copy link
Member

Look good, however I do think that if we do this for the snapshot table, we also need to do this for the journal table.

Copy link
Member

@octonato octonato left a comment

Choose a reason for hiding this comment

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

@notNotDaniel can you do the same for the journal table as well? thanks

@notNotDaniel
Copy link
Contributor Author

Good point, I noticed the snapshot table when we were implementing a custom journal table, so didn't notice the problem there too. I'll add the change for the journal table too.
Thanks.

@octonato octonato merged commit 10d5d8d into akka:master Apr 24, 2018
@WellingR WellingR added this to the 3.4.0 milestone May 29, 2018
evgenyzic pushed a commit to evgenyzic/akka-persistence-jdbc that referenced this pull request Dec 16, 2019
* use snapshot table name in its primary key name

* use journal table name in its primary key and index names
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.

None yet

3 participants