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

TableUtils.createTableIfNotExists still tries to create id sequence even if table exists #36

Closed
netoneko opened this issue Oct 24, 2014 · 2 comments

Comments

@netoneko
Copy link

How to reproduce:

@DatabaseTable(tableName = "comments")
public class Comment {
    @DatabaseField(generatedId = true, allowGeneratedIdInsert=true)
    public Integer id;

    @DatabaseField(canBeNull = false)
    public String text;
}

Then run TableUtils.createTableIfNotExists(connectionSource, Comment.class) twice.

@netoneko
Copy link
Author

Seems like my issue is a duplicate of #20
Environment: PostgreSQL 9.3.40

Here is build.gradle

dependencies {
    compile group: "com.j256.ormlite", name: "ormlite-core", version: "4.48"
    compile group: "com.j256.ormlite", name: "ormlite-jdbc", version: "4.48"
    compile group: "org.postgresql", name: "postgresql", version: "9.3-1102-jdbc41"
}

@j256
Copy link
Owner

j256 commented Feb 1, 2015

Yes this is a dup of #20 .

@j256 j256 closed this as completed Feb 1, 2015
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