mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-22 23:02:42 +01:00
a46c25d2ba
Summary: Depends on D20106. Ref T6703. Since I plan to change the `ExternalAccount` table, these migrations (which rely on `save()`) will stop working. They could be rewritten to use raw queries, but I suspect few or no installs are affected. At least for now, just make them safe: if they would affect data, fatal and tell the user to perform a more gradual upgrade. Also remove an `ALTER IGNORE TABLE` (this syntax was removed at some point) and fix a `%Q` when adjusting certain types of primary keys. Test Plan: Ran `bin/storage upgrade --no-quickstart --force --namespace test1234` to get a complete migration since the beginning of time. Reviewers: amckinley Reviewed By: amckinley Subscribers: PHID-OPKG-gm6ozazyms6q6i22gyam Maniphest Tasks: T6703 Differential Revision: https://secure.phabricator.com/D20107
14 lines
492 B
PHP
14 lines
492 B
PHP
<?php
|
|
|
|
$table = new PhabricatorUser();
|
|
$conn = $table->establishConnection('w');
|
|
$table_name = 'user_oauthinfo';
|
|
|
|
foreach (new LiskRawMigrationIterator($conn, $table_name) as $row) {
|
|
throw new Exception(
|
|
pht(
|
|
'Your Phabricator install has ancient OAuth account data and is '.
|
|
'too old to upgrade directly to a modern version of Phabricator. '.
|
|
'Upgrade to a version released between June 2013 and February 2019 '.
|
|
'first, then upgrade to a modern version.'));
|
|
}
|