Skip to content

Commit 15c8943

Browse files
committed
fix mssql tests
1 parent 1a1200a commit 15c8943

8 files changed

+286
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
PUT /columns/barcodes/id
2+
3+
{"name":"id2","type":"bigint"}
4+
===
5+
200
6+
Content-Type: application/json
7+
Content-Length: 4
8+
9+
true
10+
===
11+
GET /columns/barcodes/id2
12+
===
13+
200
14+
Content-Type: application/json
15+
Content-Length: 40
16+
17+
{"name":"id2","type":"bigint","pk":true}
18+
===
19+
PUT /columns/barcodes/id2
20+
21+
{"name":"id","type":"integer"}
22+
===
23+
200
24+
Content-Type: application/json
25+
Content-Length: 4
26+
27+
true
28+
===
29+
GET /columns/barcodes/id
30+
===
31+
200
32+
Content-Type: application/json
33+
Content-Length: 40
34+
35+
{"name":"id","type":"integer","pk":true}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
PUT /columns/barcodes/product_id
2+
3+
{"nullable":true}
4+
===
5+
200
6+
Content-Type: application/json
7+
Content-Length: 4
8+
9+
true
10+
===
11+
GET /columns/barcodes/product_id
12+
===
13+
200
14+
Content-Type: application/json
15+
Content-Length: 70
16+
17+
{"name":"product_id","type":"integer","nullable":true,"fk":"products"}
18+
===
19+
PUT /columns/barcodes/product_id
20+
21+
{"nullable":false}
22+
===
23+
200
24+
Content-Type: application/json
25+
Content-Length: 4
26+
27+
true
28+
===
29+
GET /columns/barcodes/product_id
30+
===
31+
200
32+
Content-Type: application/json
33+
Content-Length: 54
34+
35+
{"name":"product_id","type":"integer","fk":"products"}
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
PUT /columns/events/visitors
2+
3+
{"nullable":false,"pk":true}
4+
===
5+
200
6+
Content-Type: application/json
7+
Content-Length: 4
8+
9+
true
10+
===
11+
GET /columns/events/visitors
12+
===
13+
200
14+
Content-Type: application/json
15+
Content-Length: 45
16+
17+
{"name":"visitors","type":"bigint","pk":true}
18+
===
19+
GET /columns/events/id
20+
===
21+
200
22+
Content-Type: application/json
23+
Content-Length: 30
24+
25+
{"name":"id","type":"integer"}
26+
===
27+
PUT /columns/events/visitors
28+
29+
{"pk":false}
30+
===
31+
200
32+
Content-Type: application/json
33+
Content-Length: 4
34+
35+
true
36+
===
37+
GET /columns/events/visitors
38+
===
39+
200
40+
Content-Type: application/json
41+
Content-Length: 35
42+
43+
{"name":"visitors","type":"bigint"}
44+
===
45+
PUT /columns/events/id
46+
47+
{"pk":true}
48+
===
49+
200
50+
Content-Type: application/json
51+
Content-Length: 4
52+
53+
true
54+
===
55+
GET /columns/events/id
56+
===
57+
200
58+
Content-Type: application/json
59+
Content-Length: 40
60+
61+
{"name":"id","type":"integer","pk":true}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
PUT /columns/barcodes/product_id
2+
3+
{"fk":""}
4+
===
5+
200
6+
Content-Type: application/json
7+
Content-Length: 4
8+
9+
true
10+
===
11+
GET /columns/barcodes/product_id
12+
===
13+
200
14+
Content-Type: application/json
15+
Content-Length: 38
16+
17+
{"name":"product_id","type":"integer"}
18+
===
19+
PUT /columns/barcodes/product_id
20+
21+
{"fk":"products"}
22+
===
23+
200
24+
Content-Type: application/json
25+
Content-Length: 4
26+
27+
true
28+
===
29+
GET /columns/barcodes/product_id
30+
===
31+
200
32+
Content-Type: application/json
33+
Content-Length: 54
34+
35+
{"name":"product_id","type":"integer","fk":"products"}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
PUT /columns/barcodes
2+
3+
{"name":"barcodes2"}
4+
===
5+
200
6+
Content-Type: application/json
7+
Content-Length: 4
8+
9+
true
10+
===
11+
GET /columns/barcodes2
12+
===
13+
200
14+
Content-Type: application/json
15+
Content-Length: 217
16+
17+
{"name":"barcodes2","type":"table","columns":[{"name":"id","type":"integer","pk":true},{"name":"product_id","type":"integer","fk":"products"},{"name":"hex","type":"varchar","length":255},{"name":"bin","type":"blob"}]}
18+
===
19+
PUT /columns/barcodes2
20+
21+
{"name":"barcodes"}
22+
===
23+
200
24+
Content-Type: application/json
25+
Content-Length: 4
26+
27+
true
28+
===
29+
GET /columns/barcodes
30+
===
31+
200
32+
Content-Type: application/json
33+
Content-Length: 216
34+
35+
{"name":"barcodes","type":"table","columns":[{"name":"id","type":"integer","pk":true},{"name":"product_id","type":"integer","fk":"products"},{"name":"hex","type":"varchar","length":255},{"name":"bin","type":"blob"}]}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
PUT /columns/barcodes/hex
2+
3+
{"type":"clob"}
4+
===
5+
200
6+
Content-Type: application/json
7+
Content-Length: 4
8+
9+
true
10+
===
11+
GET /columns/barcodes/hex
12+
===
13+
200
14+
Content-Type: application/json
15+
Content-Length: 28
16+
17+
{"name":"hex","type":"clob"}
18+
===
19+
PUT /columns/barcodes/hex
20+
21+
{"type":"varchar","length":255}
22+
===
23+
200
24+
Content-Type: application/json
25+
Content-Length: 4
26+
27+
true
28+
===
29+
GET /columns/barcodes/hex
30+
===
31+
200
32+
Content-Type: application/json
33+
Content-Length: 44
34+
35+
{"name":"hex","type":"varchar","length":255}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
POST /columns
2+
3+
{"name":"barcodes2","type":"table","columns":[{"name":"id","type":"integer","pk":true},{"name":"product_id","type":"integer","fk":"products"},{"name":"hex","type":"varchar","length":255},{"name":"bin","type":"blob"}]}
4+
===
5+
200
6+
Content-Type: application/json
7+
Content-Length: 4
8+
9+
true
10+
===
11+
GET /columns/barcodes2
12+
===
13+
200
14+
Content-Type: application/json
15+
Content-Length: 217
16+
17+
{"name":"barcodes2","type":"table","columns":[{"name":"id","type":"integer","pk":true},{"name":"product_id","type":"integer","fk":"products"},{"name":"hex","type":"varchar","length":255},{"name":"bin","type":"blob"}]}
18+
===
19+
DELETE /columns/barcodes2
20+
===
21+
200
22+
Content-Type: application/json
23+
Content-Length: 4
24+
25+
true
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
POST /columns/barcodes
2+
3+
{"name":"alternative_product_id","type":"integer","nullable":true,"fk":"products"}
4+
===
5+
200
6+
Content-Type: application/json
7+
Content-Length: 4
8+
9+
true
10+
===
11+
GET /columns/barcodes/alternative_product_id
12+
===
13+
200
14+
Content-Type: application/json
15+
Content-Length: 82
16+
17+
{"name":"alternative_product_id","type":"integer","nullable":true,"fk":"products"}
18+
===
19+
DELETE /columns/barcodes/alternative_product_id
20+
===
21+
200
22+
Content-Type: application/json
23+
Content-Length: 4
24+
25+
true

0 commit comments

Comments
 (0)