Fix: objectId size for Pointer in Postgres (#6619)

* Fixing objectId for Pointer in Postgres

* add test case for longer objectId pointer. Note that this test fails on Postgres before the addition of previous commit

* removed comment that wasn't needed
This commit is contained in:
Corey
2020-04-22 12:01:11 -04:00
committed by GitHub
parent 37ec22b270
commit 489aeae784
2 changed files with 126 additions and 87 deletions

View File

@@ -37,7 +37,7 @@ const parseTypeToPostgresType = (type) => {
case 'Boolean':
return 'boolean';
case 'Pointer':
return 'char(10)';
return 'text';
case 'Number':
return 'double precision';
case 'GeoPoint':