Page MenuHomePhabricator

Shorten extremely long credential names when migrating them
ClosedPublic

Authored by epriestley on Dec 2 2013, 2:21 PM.
Tags
None
Referenced Files
Unknown Object (File)
Jun 8 2026, 9:51 AM
Unknown Object (File)
Apr 4 2026, 4:28 AM
Unknown Object (File)
Apr 3 2026, 3:31 PM
Unknown Object (File)
Mar 13 2026, 2:31 AM
Unknown Object (File)
Mar 4 2026, 4:02 AM
Unknown Object (File)
Jan 31 2026, 10:05 AM
Unknown Object (File)
Jan 22 2026, 4:44 AM
Unknown Object (File)
Jan 9 2026, 11:28 AM
Subscribers

Details

Summary

Fixes T4183. If you have too many repositories sharing the same credential and MySQL is in strict mode, we'll fail a query when trying to write a credential with a name longer than 255 characters. Instead, shorten the variable-length part to 128 characters.

Test Plan

Wiped credentials column and successfully re-ran migration with storage upgrade --force --apply phabricator:20131121.repocredentials.2.mig.php

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped