Changeset View
Changeset View
Standalone View
Standalone View
resources/sql/patches/090.forceuniqueprojectnames.php
| Show First 20 Lines • Show All 58 Lines • ▼ Show 20 Lines | try { | ||||
| unset($update[$key]); | unset($update[$key]); | ||||
| echo "okay.\n"; | echo "okay.\n"; | ||||
| } catch (AphrontQueryDuplicateKeyException $ex) { | } catch (AphrontQueryDuplicateKeyException $ex) { | ||||
| echo "failed, will retry.\n"; | echo "failed, will retry.\n"; | ||||
| } | } | ||||
| } | } | ||||
| if (count($update) == $size) { | if (count($update) == $size) { | ||||
| throw new Exception( | throw new Exception( | ||||
| "Failed to make any progress while updating projects. Schema upgrade ". | 'Failed to make any progress while updating projects. Schema upgrade '. | ||||
| "has failed. Go manually fix your project names to be unique (they are ". | 'has failed. Go manually fix your project names to be unique (they are '. | ||||
| "probably ridiculous?) and then try again."); | 'probably ridiculous?) and then try again.'); | ||||
| } | } | ||||
| } | } | ||||
| $table->endReadLocking(); | $table->endReadLocking(); | ||||
| $table->saveTransaction(); | $table->saveTransaction(); | ||||
| echo "Done.\n"; | echo "Done.\n"; | ||||
| Show All 30 Lines | |||||