strongloop/loopback — pull request #946 by glesage (2014-12-23 11:40:40+00:00)
Title: Preliminary fix for push pushSettings size

Not sure if this is the best way to fix BUT:

When using this with a MySql DB the size of the pushSettings object in DB is 4096... which is not enough for all options with SSL certificates (my encrypted key is 1833 characters and certificate is 2400)

Looking at all the options possible and all keys I think the maximum size it should ever be would be around 4662... so I gave it some extra just in case Google decides to lengthen its API key sizes from <64 to higher...

As for the test, I had to change the toObject() functions to toString() because it seems the object includes whitespace or something when using a fixed size of 5000 (at least during the tests)

When I put the length attribute in certData & keyData as such:

```
"certData": {
"type": "string",
"description": "The certificate data loaded from the cert.pem file",
"length" : 2400
},
"keyData": {
"type": "string",
"description": "The key data loaded from the key.pem file",
"length" : 2400
},
```

The tests pass find with the toObject() method, BUT when I attempt to use it in my MySQL DB the pushSettings row is back to 4096 in size /: