File tree Expand file tree Collapse file tree 4 files changed +7
-3
lines changed
src/Tqdev/PhpCrudApi/Database Expand file tree Collapse file tree 4 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ These features match features in v1 (see branch "v1"):
104
104
- [x] Supports POST variables as input (x-www-form-urlencoded)
105
105
- [x] Supports a JSON object as input
106
106
- [x] Supports a JSON array as input (batch insert)
107
- - [ ] Supports file upload from web forms (multipart/form-data)
107
+ - [x ] Supports file upload from web forms (multipart/form-data)
108
108
- [ ] ~~ Condensed JSON output: first row contains field names~~
109
109
- [x] Sanitize and validate input using callbacks
110
110
- [x] Permission system for databases, tables, columns and records
@@ -118,7 +118,7 @@ These features match features in v1 (see branch "v1"):
118
118
- [x] Atomic increment support via PATCH (for counters)
119
119
- [x] Binary fields supported with base64 encoding
120
120
- [x] Spatial/GIS fields and filters supported with WKT
121
- - [ ] Unstructured data support through JSON/JSONB
121
+ - [ ] ~~ Unstructured data support through JSON/JSONB~~
122
122
- [x] Generate API documentation using OpenAPI tools
123
123
- [x] Authentication via JWT token or username/password
124
124
- [ ] ~~ SQLite support~~
Original file line number Diff line number Diff line change @@ -2621,6 +2621,7 @@ public function __construct(String $driver)
2621
2621
'point ' => 'geometry ' ,
2622
2622
'datetime ' => 'timestamp ' ,
2623
2623
'enum ' => 'varchar ' ,
2624
+ 'json ' => 'clob ' ,
2624
2625
],
2625
2626
'pgsql ' => [
2626
2627
'bigserial ' => 'bigint ' ,
@@ -2633,6 +2634,7 @@ public function __construct(String $driver)
2633
2634
'circle ' => 'geometry ' ,
2634
2635
'double precision ' => 'double ' ,
2635
2636
'inet ' => 'integer ' ,
2637
+ 'json ' => 'clob ' ,
2636
2638
'jsonb ' => 'clob ' ,
2637
2639
'line ' => 'geometry ' ,
2638
2640
'lseg ' => 'geometry ' ,
Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ public function __construct(String $driver)
62
62
'point ' => 'geometry ' ,
63
63
'datetime ' => 'timestamp ' ,
64
64
'enum ' => 'varchar ' ,
65
+ 'json ' => 'clob ' ,
65
66
],
66
67
'pgsql ' => [
67
68
'bigserial ' => 'bigint ' ,
@@ -75,6 +76,7 @@ public function __construct(String $driver)
75
76
'double precision ' => 'double ' ,
76
77
'inet ' => 'integer ' ,
77
78
//'interval [ fields ]'
79
+ 'json ' => 'clob ' ,
78
80
'jsonb ' => 'clob ' ,
79
81
'line ' => 'geometry ' ,
80
82
'lseg ' => 'geometry ' ,
Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ CREATE TABLE `products` (
125
125
` id` int (11 ) NOT NULL AUTO_INCREMENT,
126
126
` name` varchar (255 ) NOT NULL ,
127
127
` price` decimal (10 ,2 ) NOT NULL ,
128
- ` properties` LONGTEXT NOT NULL ,
128
+ ` properties` JSON NOT NULL ,
129
129
` created_at` datetime NOT NULL ,
130
130
` deleted_at` datetime NULL ,
131
131
PRIMARY KEY (` id` )
You can’t perform that action at this time.
0 commit comments