Homec4science

Shorten extremely long credential names when migrating them

Authored by epriestley <git@epriestley.com> on Dec 2 2013, 20:26.

Description

Shorten extremely long credential names when migrating them

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

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T4183

Differential Revision: https://secure.phabricator.com/D7677

Details

Committed
epriestley <git@epriestley.com>Dec 2 2013, 20:26
Pushed
aubortJan 31 2017, 17:16
Parents
rPHd59722321fe4: Handle "-p port" flag in ssh-connect
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPH95c2b5097447: Shorten extremely long credential names when migrating them (authored by epriestley <git@epriestley.com>).Dec 2 2013, 20:26