Skip to content

Commit e72acba

Browse files
committed
Set uid to SERIAL
1 parent 53350ce commit e72acba

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
sleep 1
7979
node tests/websocket_client.js &> logs/client.log &
8080
sleep 1
81-
psql postgres://test:test@localhost/test < tests/sql/test_upsert.sql
81+
psql postgres://test:test@localhost/test < tests/sql/test_insert.sql
8282
sleep 1
8383
[[ $(jq -r .row.text < logs/client.log) == "Hello world" ]]
8484
- store_artifacts:

tests/sql/setup_2_table.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
CREATE TABLE IF NOT EXISTS mytable (
2-
uid integer PRIMARY KEY,
2+
uid SERIAL PRIMARY KEY,
33
text varchar(140)
44
);

tests/sql/test_insert.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
INSERT INTO mytable (text) VALUES ('Hello world');

tests/sql/test_upsert.sql

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)