Skip to content

Commit

Permalink
Merge pull request #4354 from IQSS/4353-jpa-vs-sql-script
Browse files Browse the repository at this point in the history
fix SQL upgrade script to match JPA (unlimited) #4353
  • Loading branch information
kcondon authored Dec 5, 2017
2 parents ec61cb9 + 0caed58 commit 93b3327
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions scripts/database/upgrades/upgrade_v4.8.3_to_v4.8.4.sql
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
-- Hopefully, 255 characters is enough. Google login has used 131 characters.
ALTER TABLE oauth2tokendata ALTER COLUMN accesstoken TYPE character varying(255);
-- Google login has used 131 characters. 64 is not enough.
ALTER TABLE oauth2tokendata ALTER COLUMN accesstoken TYPE text;
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@ public class OAuth2TokenData implements Serializable {
private Timestamp expiryDate;

/**
* "TEXT" is 255 characters, which is enough for Google at 131 characters.
* Facebook says, "Please don't put a maximum size on the storage for an
* access token" at
* "Please don't put a maximum size on the storage for an access token" at
* https://stackoverflow.com/questions/4408945/what-is-the-length-of-the-access-token-in-facebook-oauth2/16365828#16365828
*/
@Column(columnDefinition = "TEXT")
Expand Down

0 comments on commit 93b3327

Please sign in to comment.