feat(postgres): Add Bytes to Support (#3894)

* Add bytes to schema

* postgres support

* test cases

* bytes work parse object
This commit is contained in:
Diamond Lewis
2017-05-31 21:23:49 -05:00
committed by Florent Vilmart
parent e8be98ded2
commit 4b16a72992
5 changed files with 8 additions and 2 deletions

View File

@@ -28,6 +28,7 @@ const parseTypeToPostgresType = type => {
case 'Pointer': return 'char(10)';
case 'Number': return 'double precision';
case 'GeoPoint': return 'point';
case 'Bytes': return 'jsonb';
case 'Array':
if (type.contents && type.contents.type === 'String') {
return 'text[]';
@@ -769,6 +770,7 @@ export class PostgresStorageAdapter {
}
break;
case 'Object':
case 'Bytes':
case 'String':
case 'Number':
case 'Boolean':