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)
Sun, Dec 8, 6:32 PM
Unknown Object (File)
Sun, Dec 8, 3:18 AM
Unknown Object (File)
Tue, Dec 3, 4:03 PM
Unknown Object (File)
Thu, Nov 28, 3:48 PM
Unknown Object (File)
Nov 18 2024, 8:12 AM
Unknown Object (File)
Nov 14 2024, 3:33 PM
Unknown Object (File)
Nov 10 2024, 10:04 AM
Unknown Object (File)
Nov 6 2024, 1:50 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