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)
Fri, May 3, 2:46 AM
Unknown Object (File)
Thu, May 2, 8:05 PM
Unknown Object (File)
Mon, Apr 29, 2:13 PM
Unknown Object (File)
Wed, Apr 24, 10:02 PM
Unknown Object (File)
Apr 1 2024, 11:05 PM
Unknown Object (File)
Mar 31 2024, 10:16 AM
Unknown Object (File)
Mar 29 2024, 3:37 PM
Unknown Object (File)
Mar 29 2024, 3:37 PM
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