Skip to content

Commit

Permalink
Fix pg syntax on pg tests
Browse files Browse the repository at this point in the history
  • Loading branch information
enriquemolinari committed Oct 2, 2022
1 parent 92609cb commit f918b2c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ JQueue requires the following table in your data store:
```sql
CREATE TABLE ar_cpfw_jqueue
(
id char(36) NOT NULL,
id int NOT NULL auto_increment, --MySQL
-- id serial, --PostgreSQL
channel varchar(100) NOT NULL,
data text NOT NULL,
attempt int,
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/ar/cpfw/jqueue/push/PushPostgreSqlTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ void setUp() throws SQLException {
.execute();

new JdbcSession(dataSource).sql("CREATE TABLE ar_cpfw_jqueue ( "
+ "id int serial, " + "channel varchar(100) NOT NULL, "
+ "id serial, " + "channel varchar(100) NOT NULL, "
+ "data text NOT NULL, " + "attempt int, " + "delay int, "
+ "pushed_at timestamp, " + "CONSTRAINT id_pk PRIMARY KEY (id));")
.execute();
Expand Down

0 comments on commit f918b2c

Please sign in to comment.