Skip to content

Commit

Permalink
fix: org.h2.jdbc.JdbcSQLSyntaxErrorException after H2 version upgrade (
Browse files Browse the repository at this point in the history
…#62)

Signed-off-by: Yixiang Zhao <[email protected]>
  • Loading branch information
seriouszyx authored Feb 10, 2022
1 parent 33baa2c commit 96918ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ configurations {

dependencies {
compile 'org.casbin:jcasbin:1.21.0'
compile 'com.h2database:h2'
compile 'com.h2database:h2:2.1.210'
implementation 'org.springframework.boot:spring-boot-starter-jdbc'

compileOnly 'org.springframework.boot:spring-boot-starter-data-redis'
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/casbin/adapter/JdbcAdapter.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class JdbcAdapter implements FilteredAdapter {
private String tableName;

private static final String INIT_TABLE_SQL = "CREATE TABLE IF NOT EXISTS casbin_rule (" +
" id int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY, "+
" id int NOT NULL AUTO_INCREMENT PRIMARY KEY, "+
" ptype varchar(255) NOT NULL," +
" v0 varchar(255) DEFAULT NULL," +
" v1 varchar(255) DEFAULT NULL," +
Expand Down

0 comments on commit 96918ae

Please sign in to comment.