android icon indicating copy to clipboard operation
android copied to clipboard

Type STRING in Database instead of INTEGER/TEXT

Open tobiasKaminsky opened this issue 7 years ago • 5 comments
trafficstars

AndroidStudio suggests not to use STRING as this type can truncate leading zeros, instead Integer or Text should be used. As this is done on upgrade from very old databases or on new installation I guess we can change this without side-effects. Is FILESYSTEM_SYNCED_FOLDER_ID integer only? Or should we use text?

https://github.com/nextcloud/android/blob/f9983558c97bd0ef61158b9dc93ab89d20e60e2a/src/main/java/com/owncloud/android/providers/FileContentProvider.java#L1363

@mario as you wrote the code and probably know best

tobiasKaminsky avatar Nov 30 '17 07:11 tobiasKaminsky