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
F15476642: D7677.diff
Mon, Apr 7, 8:09 AM
F15457004: D7677.diff
Sun, Mar 30, 1:37 PM
F15438324: D7677.id17344.diff
Wed, Mar 26, 12:10 AM
F15438001: D7677.diff
Tue, Mar 25, 10:37 PM
F15423350: D7677.diff
Sat, Mar 22, 3:05 PM
F15405160: D7677.diff
Tue, Mar 18, 10:31 AM
F15378983: D7677.id17335.diff
Thu, Mar 13, 5:59 PM
Unknown Object (File)
Feb 24 2025, 3:06 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