Quantcast
Channel: PKP Community Forum - Latest topics
Viewing all articles
Browse latest Browse all 27345

Database field size

$
0
0

@AndrewGearhart wrote:

I’m currently working on switching our database from … a whole series of different encodings/collations to utf8mb4 … however, I’ve run into one (so far) circumstance where the composite key that is on the table (announcement_settings.announcement_settings_pkey) would be too large for a key (1000 bytes) based on character length of 20,14,255 on a maximum size of 4 bytes per character (1156 bytes). Seems that the best course is to cut down the size of the announcement_settings.setting_name field from 255 chars to 235 (maximum length right now that i see in our table is 16 chars).

Can anyone think of any reason that the field shouldn’t be reduced in size? (PS: I’d love to contribute this back as a fix in OJS if the community is okay with the change).

Are there any other fields that are like this that can be snipped?

Best, +A

Posts: 2

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 27345

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>