mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-31 18:01:00 +01:00
Update Quickstart SQL
Summary: This hasn't been updated in a bit more than a year (last updated in D18594) and we've accumulated a fair number of SQL patches. Update it. This is mostly automatic (with `bin/storage quickstart`), except: - Manual edit to one migration for a missed callsite to `DashboardInstall`. - Replaced two InnoDB tables that still have FULLTEXT indexes with MyISAM (see rP6cedd4a95cfc). This is not really possible to review and more for reference than examination. `bin/storage quickstart` has historically worked correctly. Test Plan: I have great faith that `bin/storage quickstart` is a script which creates a big `.sql` file. Reviewers: amckinley Reviewed By: amckinley Subscribers: PHID-OPKG-gm6ozazyms6q6i22gyam Differential Revision: https://secure.phabricator.com/D20480
This commit is contained in:
parent
648d5ce190
commit
5462a52b8a
2 changed files with 10374 additions and 6578 deletions
|
@ -81,21 +81,8 @@ foreach ($applications as $application) {
|
|||
|
||||
/* -( Dashboard installs )------------------------------------------------- */
|
||||
|
||||
echo pht('Migrating dashboard installs...')."\n";
|
||||
$table = new PhabricatorDashboardInstall();
|
||||
$conn_w = $table->establishConnection('w');
|
||||
|
||||
foreach (new LiskMigrationIterator($table) as $dashboard_install) {
|
||||
$application = $dashboard_install->getApplicationClass();
|
||||
|
||||
queryfx(
|
||||
$conn_w,
|
||||
'UPDATE %T SET applicationClass = %s WHERE id = %d',
|
||||
$table->getTableName(),
|
||||
idx($map, $application, $application),
|
||||
$dashboard_install->getID());
|
||||
}
|
||||
|
||||
// This originally migrated dashboard install locations, but was removed
|
||||
// after about 5 years.
|
||||
|
||||
/* -( Phabricator configuration )------------------------------------------ */
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue