mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-09 16:32:39 +01:00
Merge branch 'master' into redesign-2015
This commit is contained in:
commit
bfca11dbba
1126 changed files with 9507 additions and 7076 deletions
1
.arclint
1
.arclint
|
@ -74,7 +74,6 @@
|
|||
"type": "xhpast",
|
||||
"include": "(\\.php$)",
|
||||
"severity": {
|
||||
"16": "advice",
|
||||
"34": "error"
|
||||
},
|
||||
"xhpast.blacklisted.function": {
|
||||
|
|
|
@ -7,15 +7,15 @@
|
|||
*/
|
||||
return array(
|
||||
'names' => array(
|
||||
'core.pkg.css' => '4362e142',
|
||||
'core.pkg.js' => 'f3e08b38',
|
||||
'core.pkg.css' => '2ba05f62',
|
||||
'core.pkg.js' => '9db3e620',
|
||||
'darkconsole.pkg.js' => 'e7393ebb',
|
||||
'differential.pkg.css' => 'bb338e4b',
|
||||
'differential.pkg.js' => '895b8d62',
|
||||
'differential.pkg.js' => '63a77807',
|
||||
'diffusion.pkg.css' => '385e85b3',
|
||||
'diffusion.pkg.js' => '0115b37c',
|
||||
'maniphest.pkg.css' => 'ddf93c68',
|
||||
'maniphest.pkg.js' => 'df4aa49f',
|
||||
'maniphest.pkg.js' => '2f4f52c2',
|
||||
'rsrc/css/aphront/aphront-bars.css' => '231ac33c',
|
||||
'rsrc/css/aphront/dark-console.css' => '6378ef3d',
|
||||
'rsrc/css/aphront/dialog-view.css' => '725f2f23',
|
||||
|
@ -37,7 +37,8 @@ return array(
|
|||
'rsrc/css/application/base/main-menu-view.css' => '4b7ecab2',
|
||||
'rsrc/css/application/base/notification-menu.css' => '713df25a',
|
||||
'rsrc/css/application/base/phabricator-application-launch-view.css' => '132f9d14',
|
||||
'rsrc/css/application/base/standard-page-view.css' => '062f0f54',
|
||||
'rsrc/css/application/base/standard-page-view.css' => '43045fb4',
|
||||
'rsrc/css/application/calendar/calendar-icon.css' => '98ce946d',
|
||||
'rsrc/css/application/chatlog/chatlog.css' => '852140ff',
|
||||
'rsrc/css/application/conduit/conduit-api.css' => '7bc725c4',
|
||||
'rsrc/css/application/config/config-options.css' => '7fedf08b',
|
||||
|
@ -45,7 +46,7 @@ return array(
|
|||
'rsrc/css/application/config/config-welcome.css' => '6abd79be',
|
||||
'rsrc/css/application/config/setup-issue.css' => '631c4e92',
|
||||
'rsrc/css/application/config/unhandled-exception.css' => '4c96257a',
|
||||
'rsrc/css/application/conpherence/durable-column.css' => 'd1e796f0',
|
||||
'rsrc/css/application/conpherence/durable-column.css' => '0c23f069',
|
||||
'rsrc/css/application/conpherence/menu.css' => 'f9f1d143',
|
||||
'rsrc/css/application/conpherence/message-pane.css' => '7cbf4cbb',
|
||||
'rsrc/css/application/conpherence/notification.css' => '919974b6',
|
||||
|
@ -108,7 +109,7 @@ return array(
|
|||
'rsrc/css/application/tokens/tokens.css' => '3d0f239e',
|
||||
'rsrc/css/application/uiexample/example.css' => '528b19de',
|
||||
'rsrc/css/core/core.css' => 'bbc7187b',
|
||||
'rsrc/css/core/remarkup.css' => '8ad937ee',
|
||||
'rsrc/css/core/remarkup.css' => 'ea91b3ee',
|
||||
'rsrc/css/core/syntax.css' => '6b7b24d9',
|
||||
'rsrc/css/core/z-index.css' => '8c8c40aa',
|
||||
'rsrc/css/diviner/diviner-shared.css' => '38813222',
|
||||
|
@ -116,13 +117,13 @@ return array(
|
|||
'rsrc/css/font/font-source-sans-pro.css' => '8906c07b',
|
||||
'rsrc/css/font/phui-font-icon-base.css' => '3dad2ae3',
|
||||
'rsrc/css/layout/phabricator-filetree-view.css' => 'fccf9f82',
|
||||
'rsrc/css/layout/phabricator-hovercard-view.css' => 'd2a28ca5',
|
||||
'rsrc/css/layout/phabricator-hovercard-view.css' => '0d665853',
|
||||
'rsrc/css/layout/phabricator-side-menu-view.css' => 'a440478a',
|
||||
'rsrc/css/layout/phabricator-source-code-view.css' => '2ceee894',
|
||||
'rsrc/css/phui/calendar/phui-calendar-day.css' => '38891735',
|
||||
'rsrc/css/phui/calendar/phui-calendar-list.css' => 'c1d0ca59',
|
||||
'rsrc/css/phui/calendar/phui-calendar-month.css' => '75e6a2ee',
|
||||
'rsrc/css/phui/calendar/phui-calendar.css' => '8675968e',
|
||||
'rsrc/css/phui/calendar/phui-calendar-day.css' => 'c0cf782a',
|
||||
'rsrc/css/phui/calendar/phui-calendar-list.css' => 'c1c7f338',
|
||||
'rsrc/css/phui/calendar/phui-calendar-month.css' => '476be7e0',
|
||||
'rsrc/css/phui/calendar/phui-calendar.css' => 'ccabe893',
|
||||
'rsrc/css/phui/phui-action-list.css' => '32c388b3',
|
||||
'rsrc/css/phui/phui-action-panel.css' => '3ee9afd5',
|
||||
'rsrc/css/phui/phui-box.css' => 'a5bb366d',
|
||||
|
@ -131,7 +132,7 @@ return array(
|
|||
'rsrc/css/phui/phui-document.css' => '8be7a5e3',
|
||||
'rsrc/css/phui/phui-feed-story.css' => 'c9f3a0b5',
|
||||
'rsrc/css/phui/phui-fontkit.css' => 'b664ac96',
|
||||
'rsrc/css/phui/phui-form-view.css' => 'e1abbe8e',
|
||||
'rsrc/css/phui/phui-form-view.css' => '526ee2ab',
|
||||
'rsrc/css/phui/phui-form.css' => 'f535f938',
|
||||
'rsrc/css/phui/phui-header-view.css' => '99066800',
|
||||
'rsrc/css/phui/phui-icon.css' => '88ba9081',
|
||||
|
@ -149,7 +150,7 @@ return array(
|
|||
'rsrc/css/phui/phui-tag-view.css' => '402691cc',
|
||||
'rsrc/css/phui/phui-text.css' => 'cf019f54',
|
||||
'rsrc/css/phui/phui-timeline-view.css' => 'a85542c8',
|
||||
'rsrc/css/phui/phui-workboard-view.css' => 'bc3e2e76',
|
||||
'rsrc/css/phui/phui-workboard-view.css' => 'd39ec91e',
|
||||
'rsrc/css/phui/phui-workpanel-view.css' => '015a0cab',
|
||||
'rsrc/css/sprite-login.css' => 'a3526809',
|
||||
'rsrc/css/sprite-main-header.css' => '28d01b0b',
|
||||
|
@ -227,7 +228,7 @@ return array(
|
|||
'rsrc/externals/javelin/lib/control/typeahead/source/TypeaheadOnDemandSource.js' => '8b3fd187',
|
||||
'rsrc/externals/javelin/lib/control/typeahead/source/TypeaheadPreloadedSource.js' => '54f314a0',
|
||||
'rsrc/externals/javelin/lib/control/typeahead/source/TypeaheadSource.js' => '2818f5ce',
|
||||
'rsrc/externals/javelin/lib/control/typeahead/source/TypeaheadStaticSource.js' => '316b8fa1',
|
||||
'rsrc/externals/javelin/lib/control/typeahead/source/TypeaheadStaticSource.js' => '6c0e62fa',
|
||||
'rsrc/externals/raphael/g.raphael.js' => '40dde778',
|
||||
'rsrc/externals/raphael/g.raphael.line.js' => '40da039e',
|
||||
'rsrc/externals/raphael/raphael.js' => '51ee6b43',
|
||||
|
@ -328,10 +329,10 @@ return array(
|
|||
'rsrc/js/application/auth/behavior-persona-login.js' => '9414ff18',
|
||||
'rsrc/js/application/calendar/event-all-day.js' => 'ca5fa62a',
|
||||
'rsrc/js/application/config/behavior-reorder-fields.js' => '14a827de',
|
||||
'rsrc/js/application/conpherence/ConpherenceThreadManager.js' => 'b7342ddb',
|
||||
'rsrc/js/application/conpherence/ConpherenceThreadManager.js' => '10246726',
|
||||
'rsrc/js/application/conpherence/behavior-drag-and-drop-photo.js' => 'cf86d16a',
|
||||
'rsrc/js/application/conpherence/behavior-durable-column.js' => '16c695bf',
|
||||
'rsrc/js/application/conpherence/behavior-menu.js' => '4351c4a0',
|
||||
'rsrc/js/application/conpherence/behavior-menu.js' => 'c0348cac',
|
||||
'rsrc/js/application/conpherence/behavior-pontificate.js' => '21ba5861',
|
||||
'rsrc/js/application/conpherence/behavior-quicksand-blacklist.js' => '7927a7d3',
|
||||
'rsrc/js/application/conpherence/behavior-widget-pane.js' => '93568464',
|
||||
|
@ -344,7 +345,7 @@ return array(
|
|||
'rsrc/js/application/differential/DifferentialInlineCommentEditor.js' => 'd4c87bf4',
|
||||
'rsrc/js/application/differential/behavior-add-reviewers-and-ccs.js' => 'e10f8e18',
|
||||
'rsrc/js/application/differential/behavior-comment-jump.js' => '4fdb476d',
|
||||
'rsrc/js/application/differential/behavior-comment-preview.js' => '8e1389b5',
|
||||
'rsrc/js/application/differential/behavior-comment-preview.js' => 'b064af76',
|
||||
'rsrc/js/application/differential/behavior-diff-radios.js' => 'e1ff79b1',
|
||||
'rsrc/js/application/differential/behavior-dropdown-menus.js' => '2035b9cb',
|
||||
'rsrc/js/application/differential/behavior-edit-inline-comments.js' => 'e723c323',
|
||||
|
@ -374,7 +375,7 @@ return array(
|
|||
'rsrc/js/application/maniphest/behavior-subpriorityeditor.js' => '84845b5b',
|
||||
'rsrc/js/application/maniphest/behavior-transaction-controls.js' => '44168bad',
|
||||
'rsrc/js/application/maniphest/behavior-transaction-expand.js' => '5fefb143',
|
||||
'rsrc/js/application/maniphest/behavior-transaction-preview.js' => 'f8248bc5',
|
||||
'rsrc/js/application/maniphest/behavior-transaction-preview.js' => '4c95d29e',
|
||||
'rsrc/js/application/owners/OwnersPathEditor.js' => 'aa1733d0',
|
||||
'rsrc/js/application/owners/owners-path-editor.js' => '7a68dda3',
|
||||
'rsrc/js/application/passphrase/passphrase-credential-control.js' => '3cb0b2fc',
|
||||
|
@ -393,11 +394,11 @@ return array(
|
|||
'rsrc/js/application/releeph/releeph-preview-branch.js' => 'b2b4fbaf',
|
||||
'rsrc/js/application/releeph/releeph-request-state-change.js' => 'a0b57eb8',
|
||||
'rsrc/js/application/releeph/releeph-request-typeahead.js' => 'de2e896f',
|
||||
'rsrc/js/application/repository/repository-crossreference.js' => 'f9539603',
|
||||
'rsrc/js/application/repository/repository-crossreference.js' => '3975b470',
|
||||
'rsrc/js/application/search/behavior-reorder-queries.js' => 'e9581f08',
|
||||
'rsrc/js/application/slowvote/behavior-slowvote-embed.js' => '887ad43f',
|
||||
'rsrc/js/application/transactions/behavior-show-older-transactions.js' => 'dbbf48b6',
|
||||
'rsrc/js/application/transactions/behavior-transaction-comment-form.js' => '9f7309fb',
|
||||
'rsrc/js/application/transactions/behavior-transaction-comment-form.js' => 'b23b49e6',
|
||||
'rsrc/js/application/transactions/behavior-transaction-list.js' => '13c739ea',
|
||||
'rsrc/js/application/typeahead/behavior-typeahead-browse.js' => '635de1ec',
|
||||
'rsrc/js/application/typeahead/behavior-typeahead-search.js' => '93d0c9e3',
|
||||
|
@ -461,14 +462,15 @@ return array(
|
|||
'rsrc/js/core/behavior-scrollbar.js' => '834a1173',
|
||||
'rsrc/js/core/behavior-search-typeahead.js' => '048330fa',
|
||||
'rsrc/js/core/behavior-select-on-click.js' => '4e3e79a6',
|
||||
'rsrc/js/core/behavior-time-typeahead.js' => '8bfbb401',
|
||||
'rsrc/js/core/behavior-toggle-class.js' => '5d7c9f33',
|
||||
'rsrc/js/core/behavior-tokenizer.js' => 'b3a4b884',
|
||||
'rsrc/js/core/behavior-tooltip.js' => '3ee3408b',
|
||||
'rsrc/js/core/behavior-watch-anchor.js' => '9f36c42d',
|
||||
'rsrc/js/core/behavior-workflow.js' => '0a3f3021',
|
||||
'rsrc/js/core/phtize.js' => 'd254d646',
|
||||
'rsrc/js/phui/behavior-phui-dropdown-menu.js' => '54733475',
|
||||
'rsrc/js/phui/behavior-phui-object-box-tabs.js' => '2bfa2836',
|
||||
'rsrc/js/phui/behavior-phui-timeline-dropdown-menu.js' => '4d94d9c3',
|
||||
'rsrc/js/phuix/PHUIXActionListView.js' => 'b5c256b8',
|
||||
'rsrc/js/phuix/PHUIXActionView.js' => '8cf6d262',
|
||||
'rsrc/js/phuix/PHUIXDropdownMenu.js' => 'bd4c8dca',
|
||||
|
@ -488,15 +490,16 @@ return array(
|
|||
'aphront-two-column-view-css' => '16ab3ad2',
|
||||
'aphront-typeahead-control-css' => '0e403212',
|
||||
'auth-css' => '44975d4b',
|
||||
'calendar-icon-css' => '98ce946d',
|
||||
'changeset-view-manager' => '58562350',
|
||||
'conduit-api-css' => '7bc725c4',
|
||||
'config-options-css' => '7fedf08b',
|
||||
'config-welcome-css' => '6abd79be',
|
||||
'conpherence-durable-column-view' => 'd1e796f0',
|
||||
'conpherence-durable-column-view' => '0c23f069',
|
||||
'conpherence-menu-css' => 'f9f1d143',
|
||||
'conpherence-message-pane-css' => '7cbf4cbb',
|
||||
'conpherence-notification-css' => '919974b6',
|
||||
'conpherence-thread-manager' => 'b7342ddb',
|
||||
'conpherence-thread-manager' => '10246726',
|
||||
'conpherence-transaction-css' => '42a457f6',
|
||||
'conpherence-update-css' => '1099a660',
|
||||
'conpherence-widget-pane-css' => '77096740',
|
||||
|
@ -536,7 +539,7 @@ return array(
|
|||
'javelin-behavior-choose-control' => '6153c708',
|
||||
'javelin-behavior-config-reorder-fields' => '14a827de',
|
||||
'javelin-behavior-conpherence-drag-and-drop-photo' => 'cf86d16a',
|
||||
'javelin-behavior-conpherence-menu' => '4351c4a0',
|
||||
'javelin-behavior-conpherence-menu' => 'c0348cac',
|
||||
'javelin-behavior-conpherence-pontificate' => '21ba5861',
|
||||
'javelin-behavior-conpherence-widget-pane' => '93568464',
|
||||
'javelin-behavior-countdown-timer' => 'e4cc26b3',
|
||||
|
@ -551,7 +554,7 @@ return array(
|
|||
'javelin-behavior-differential-diff-radios' => 'e1ff79b1',
|
||||
'javelin-behavior-differential-dropdown-menus' => '2035b9cb',
|
||||
'javelin-behavior-differential-edit-inline-comments' => 'e723c323',
|
||||
'javelin-behavior-differential-feedback-preview' => '8e1389b5',
|
||||
'javelin-behavior-differential-feedback-preview' => 'b064af76',
|
||||
'javelin-behavior-differential-keyboard-navigation' => '2c426492',
|
||||
'javelin-behavior-differential-populate' => '8694b1df',
|
||||
'javelin-behavior-differential-show-field-details' => 'bba9eedf',
|
||||
|
@ -582,7 +585,7 @@ return array(
|
|||
'javelin-behavior-maniphest-subpriority-editor' => '84845b5b',
|
||||
'javelin-behavior-maniphest-transaction-controls' => '44168bad',
|
||||
'javelin-behavior-maniphest-transaction-expand' => '5fefb143',
|
||||
'javelin-behavior-maniphest-transaction-preview' => 'f8248bc5',
|
||||
'javelin-behavior-maniphest-transaction-preview' => '4c95d29e',
|
||||
'javelin-behavior-owners-path-editor' => '7a68dda3',
|
||||
'javelin-behavior-passphrase-credential-control' => '3cb0b2fc',
|
||||
'javelin-behavior-persona-login' => '9414ff18',
|
||||
|
@ -605,14 +608,14 @@ return array(
|
|||
'javelin-behavior-phabricator-search-typeahead' => '048330fa',
|
||||
'javelin-behavior-phabricator-show-older-transactions' => 'dbbf48b6',
|
||||
'javelin-behavior-phabricator-tooltips' => '3ee3408b',
|
||||
'javelin-behavior-phabricator-transaction-comment-form' => '9f7309fb',
|
||||
'javelin-behavior-phabricator-transaction-comment-form' => 'b23b49e6',
|
||||
'javelin-behavior-phabricator-transaction-list' => '13c739ea',
|
||||
'javelin-behavior-phabricator-watch-anchor' => '9f36c42d',
|
||||
'javelin-behavior-phame-post-preview' => 'be807912',
|
||||
'javelin-behavior-pholio-mock-edit' => '246dc085',
|
||||
'javelin-behavior-pholio-mock-view' => 'fbe497e7',
|
||||
'javelin-behavior-phui-dropdown-menu' => '54733475',
|
||||
'javelin-behavior-phui-object-box-tabs' => '2bfa2836',
|
||||
'javelin-behavior-phui-timeline-dropdown-menu' => '4d94d9c3',
|
||||
'javelin-behavior-policy-control' => '9a340b3d',
|
||||
'javelin-behavior-policy-rule-editor' => '5e9f347c',
|
||||
'javelin-behavior-ponder-votebox' => '4e9b766b',
|
||||
|
@ -626,13 +629,14 @@ return array(
|
|||
'javelin-behavior-remarkup-preview' => 'f7379f45',
|
||||
'javelin-behavior-reorder-applications' => '76b9fc3e',
|
||||
'javelin-behavior-reorder-columns' => 'e1d25dfb',
|
||||
'javelin-behavior-repository-crossreference' => 'f9539603',
|
||||
'javelin-behavior-repository-crossreference' => '3975b470',
|
||||
'javelin-behavior-scrollbar' => '834a1173',
|
||||
'javelin-behavior-search-reorder-queries' => 'e9581f08',
|
||||
'javelin-behavior-select-on-click' => '4e3e79a6',
|
||||
'javelin-behavior-slowvote-embed' => '887ad43f',
|
||||
'javelin-behavior-stripe-payment-form' => '3f5d6dbf',
|
||||
'javelin-behavior-test-payment-form' => 'fc91ab6c',
|
||||
'javelin-behavior-time-typeahead' => '8bfbb401',
|
||||
'javelin-behavior-toggle-class' => '5d7c9f33',
|
||||
'javelin-behavior-typeahead-browse' => '635de1ec',
|
||||
'javelin-behavior-typeahead-search' => '93d0c9e3',
|
||||
|
@ -670,7 +674,7 @@ return array(
|
|||
'javelin-typeahead-ondemand-source' => '8b3fd187',
|
||||
'javelin-typeahead-preloaded-source' => '54f314a0',
|
||||
'javelin-typeahead-source' => '2818f5ce',
|
||||
'javelin-typeahead-static-source' => '316b8fa1',
|
||||
'javelin-typeahead-static-source' => '6c0e62fa',
|
||||
'javelin-uri' => '6eff08aa',
|
||||
'javelin-util' => '93cc50d6',
|
||||
'javelin-vector' => '2caa8fb8',
|
||||
|
@ -708,7 +712,7 @@ return array(
|
|||
'phabricator-filetree-view-css' => 'fccf9f82',
|
||||
'phabricator-flag-css' => '5337623f',
|
||||
'phabricator-hovercard' => '14ac66f5',
|
||||
'phabricator-hovercard-view-css' => 'd2a28ca5',
|
||||
'phabricator-hovercard-view-css' => '0d665853',
|
||||
'phabricator-keyboard-shortcut' => '1ae869f2',
|
||||
'phabricator-keyboard-shortcut-manager' => 'c1700f6f',
|
||||
'phabricator-main-menu-view' => '4b7ecab2',
|
||||
|
@ -720,13 +724,13 @@ return array(
|
|||
'phabricator-phtize' => 'd254d646',
|
||||
'phabricator-prefab' => '6920d200',
|
||||
'phabricator-profile-css' => '1a20dcbf',
|
||||
'phabricator-remarkup-css' => '8ad937ee',
|
||||
'phabricator-remarkup-css' => 'ea91b3ee',
|
||||
'phabricator-search-results-css' => '15c71110',
|
||||
'phabricator-shaped-request' => '7cbe244b',
|
||||
'phabricator-side-menu-view-css' => 'a440478a',
|
||||
'phabricator-slowvote-css' => '266df6a1',
|
||||
'phabricator-source-code-view-css' => '2ceee894',
|
||||
'phabricator-standard-page-view' => '062f0f54',
|
||||
'phabricator-standard-page-view' => '43045fb4',
|
||||
'phabricator-textareautils' => '5c93c52c',
|
||||
'phabricator-title' => 'df5e11d2',
|
||||
'phabricator-tooltip' => '1d298e3a',
|
||||
|
@ -754,17 +758,17 @@ return array(
|
|||
'phui-action-panel-css' => '3ee9afd5',
|
||||
'phui-box-css' => 'a5bb366d',
|
||||
'phui-button-css' => 'b995182d',
|
||||
'phui-calendar-css' => '8675968e',
|
||||
'phui-calendar-day-css' => '38891735',
|
||||
'phui-calendar-list-css' => 'c1d0ca59',
|
||||
'phui-calendar-month-css' => '75e6a2ee',
|
||||
'phui-calendar-css' => 'ccabe893',
|
||||
'phui-calendar-day-css' => 'c0cf782a',
|
||||
'phui-calendar-list-css' => 'c1c7f338',
|
||||
'phui-calendar-month-css' => '476be7e0',
|
||||
'phui-crumbs-view-css' => '3840dc4c',
|
||||
'phui-document-view-css' => '8be7a5e3',
|
||||
'phui-feed-story-css' => 'c9f3a0b5',
|
||||
'phui-font-icon-base-css' => '3dad2ae3',
|
||||
'phui-fontkit-css' => 'b664ac96',
|
||||
'phui-form-css' => 'f535f938',
|
||||
'phui-form-view-css' => 'e1abbe8e',
|
||||
'phui-form-view-css' => '526ee2ab',
|
||||
'phui-header-view-css' => '99066800',
|
||||
'phui-icon-view-css' => '88ba9081',
|
||||
'phui-image-mask-css' => '5a8b09c8',
|
||||
|
@ -782,7 +786,7 @@ return array(
|
|||
'phui-tag-view-css' => '402691cc',
|
||||
'phui-text-css' => 'cf019f54',
|
||||
'phui-timeline-view-css' => 'a85542c8',
|
||||
'phui-workboard-view-css' => 'bc3e2e76',
|
||||
'phui-workboard-view-css' => 'd39ec91e',
|
||||
'phui-workpanel-view-css' => '015a0cab',
|
||||
'phuix-action-list-view' => 'b5c256b8',
|
||||
'phuix-action-view' => '8cf6d262',
|
||||
|
@ -869,6 +873,17 @@ return array(
|
|||
'javelin-install',
|
||||
'javelin-util',
|
||||
),
|
||||
10246726 => array(
|
||||
'javelin-dom',
|
||||
'javelin-util',
|
||||
'javelin-stratcom',
|
||||
'javelin-install',
|
||||
'javelin-aphlict',
|
||||
'javelin-workflow',
|
||||
'javelin-router',
|
||||
'javelin-behavior-device',
|
||||
'javelin-vector',
|
||||
),
|
||||
'13c739ea' => array(
|
||||
'javelin-behavior',
|
||||
'javelin-stratcom',
|
||||
|
@ -1016,13 +1031,15 @@ return array(
|
|||
'javelin-install',
|
||||
'javelin-event',
|
||||
),
|
||||
'316b8fa1' => array(
|
||||
'javelin-install',
|
||||
'javelin-typeahead-source',
|
||||
),
|
||||
'331b1611' => array(
|
||||
'javelin-install',
|
||||
),
|
||||
'3975b470' => array(
|
||||
'javelin-behavior',
|
||||
'javelin-dom',
|
||||
'javelin-stratcom',
|
||||
'javelin-uri',
|
||||
),
|
||||
'3ab51e2c' => array(
|
||||
'javelin-behavior',
|
||||
'javelin-behavior-device',
|
||||
|
@ -1060,20 +1077,6 @@ return array(
|
|||
'javelin-dom',
|
||||
'javelin-request',
|
||||
),
|
||||
'4351c4a0' => array(
|
||||
'javelin-behavior',
|
||||
'javelin-dom',
|
||||
'javelin-util',
|
||||
'javelin-stratcom',
|
||||
'javelin-workflow',
|
||||
'javelin-behavior-device',
|
||||
'javelin-history',
|
||||
'javelin-vector',
|
||||
'javelin-scrollbar',
|
||||
'phabricator-title',
|
||||
'phabricator-shaped-request',
|
||||
'conpherence-thread-manager',
|
||||
),
|
||||
'44168bad' => array(
|
||||
'javelin-behavior',
|
||||
'javelin-dom',
|
||||
|
@ -1120,15 +1123,17 @@ return array(
|
|||
'javelin-request',
|
||||
'javelin-util',
|
||||
),
|
||||
'4c95d29e' => array(
|
||||
'javelin-behavior',
|
||||
'javelin-dom',
|
||||
'javelin-util',
|
||||
'javelin-json',
|
||||
'javelin-stratcom',
|
||||
'phabricator-shaped-request',
|
||||
),
|
||||
'4cebc641' => array(
|
||||
'javelin-install',
|
||||
),
|
||||
'4d94d9c3' => array(
|
||||
'javelin-behavior',
|
||||
'javelin-stratcom',
|
||||
'javelin-dom',
|
||||
'phuix-dropdown-menu',
|
||||
),
|
||||
'4e3e79a6' => array(
|
||||
'javelin-behavior',
|
||||
'javelin-stratcom',
|
||||
|
@ -1163,6 +1168,12 @@ return array(
|
|||
'javelin-leader',
|
||||
'javelin-json',
|
||||
),
|
||||
54733475 => array(
|
||||
'javelin-behavior',
|
||||
'javelin-stratcom',
|
||||
'javelin-dom',
|
||||
'phuix-dropdown-menu',
|
||||
),
|
||||
'54b612ba' => array(
|
||||
'javelin-color',
|
||||
'javelin-install',
|
||||
|
@ -1295,6 +1306,10 @@ return array(
|
|||
'69adf288' => array(
|
||||
'javelin-install',
|
||||
),
|
||||
'6c0e62fa' => array(
|
||||
'javelin-install',
|
||||
'javelin-typeahead-source',
|
||||
),
|
||||
'6c2b09a2' => array(
|
||||
'javelin-install',
|
||||
'javelin-util',
|
||||
|
@ -1465,6 +1480,14 @@ return array(
|
|||
'javelin-request',
|
||||
'javelin-typeahead-source',
|
||||
),
|
||||
'8bfbb401' => array(
|
||||
'javelin-behavior',
|
||||
'javelin-util',
|
||||
'javelin-dom',
|
||||
'javelin-stratcom',
|
||||
'javelin-vector',
|
||||
'javelin-typeahead-static-source',
|
||||
),
|
||||
'8ce821c5' => array(
|
||||
'phabricator-notification',
|
||||
'javelin-stratcom',
|
||||
|
@ -1475,14 +1498,6 @@ return array(
|
|||
'javelin-dom',
|
||||
'javelin-util',
|
||||
),
|
||||
'8e1389b5' => array(
|
||||
'javelin-behavior',
|
||||
'javelin-stratcom',
|
||||
'javelin-dom',
|
||||
'javelin-request',
|
||||
'javelin-util',
|
||||
'phabricator-shaped-request',
|
||||
),
|
||||
'8ef9ab58' => array(
|
||||
'javelin-behavior',
|
||||
'javelin-dom',
|
||||
|
@ -1561,13 +1576,6 @@ return array(
|
|||
'javelin-dom',
|
||||
'javelin-vector',
|
||||
),
|
||||
'9f7309fb' => array(
|
||||
'javelin-behavior',
|
||||
'javelin-dom',
|
||||
'javelin-util',
|
||||
'javelin-request',
|
||||
'phabricator-shaped-request',
|
||||
),
|
||||
'a0b57eb8' => array(
|
||||
'javelin-behavior',
|
||||
'javelin-dom',
|
||||
|
@ -1638,6 +1646,14 @@ return array(
|
|||
'javelin-stratcom',
|
||||
'javelin-install',
|
||||
),
|
||||
'b064af76' => array(
|
||||
'javelin-behavior',
|
||||
'javelin-stratcom',
|
||||
'javelin-dom',
|
||||
'javelin-request',
|
||||
'javelin-util',
|
||||
'phabricator-shaped-request',
|
||||
),
|
||||
'b1a59974' => array(
|
||||
'javelin-behavior',
|
||||
'javelin-aphlict',
|
||||
|
@ -1657,6 +1673,13 @@ return array(
|
|||
'javelin-dom',
|
||||
'javelin-reactor-dom',
|
||||
),
|
||||
'b23b49e6' => array(
|
||||
'javelin-behavior',
|
||||
'javelin-dom',
|
||||
'javelin-util',
|
||||
'javelin-request',
|
||||
'phabricator-shaped-request',
|
||||
),
|
||||
'b2b4fbaf' => array(
|
||||
'javelin-behavior',
|
||||
'javelin-dom',
|
||||
|
@ -1686,17 +1709,6 @@ return array(
|
|||
'javelin-dom',
|
||||
'javelin-util',
|
||||
),
|
||||
'b7342ddb' => array(
|
||||
'javelin-dom',
|
||||
'javelin-util',
|
||||
'javelin-stratcom',
|
||||
'javelin-install',
|
||||
'javelin-aphlict',
|
||||
'javelin-workflow',
|
||||
'javelin-router',
|
||||
'javelin-behavior-device',
|
||||
'javelin-vector',
|
||||
),
|
||||
'ba4fa35c' => array(
|
||||
'javelin-behavior',
|
||||
'javelin-dom',
|
||||
|
@ -1730,6 +1742,20 @@ return array(
|
|||
'javelin-util',
|
||||
'phabricator-shaped-request',
|
||||
),
|
||||
'c0348cac' => array(
|
||||
'javelin-behavior',
|
||||
'javelin-dom',
|
||||
'javelin-util',
|
||||
'javelin-stratcom',
|
||||
'javelin-workflow',
|
||||
'javelin-behavior-device',
|
||||
'javelin-history',
|
||||
'javelin-vector',
|
||||
'javelin-scrollbar',
|
||||
'phabricator-title',
|
||||
'phabricator-shaped-request',
|
||||
'conpherence-thread-manager',
|
||||
),
|
||||
'c1700f6f' => array(
|
||||
'javelin-install',
|
||||
'javelin-util',
|
||||
|
@ -1958,14 +1984,6 @@ return array(
|
|||
'javelin-typeahead-ondemand-source',
|
||||
'javelin-util',
|
||||
),
|
||||
'f8248bc5' => array(
|
||||
'javelin-behavior',
|
||||
'javelin-dom',
|
||||
'javelin-util',
|
||||
'javelin-json',
|
||||
'javelin-stratcom',
|
||||
'phabricator-shaped-request',
|
||||
),
|
||||
'f829edb3' => array(
|
||||
'javelin-view',
|
||||
'javelin-install',
|
||||
|
@ -1979,12 +1997,6 @@ return array(
|
|||
'javelin-util',
|
||||
'phabricator-busy',
|
||||
),
|
||||
'f9539603' => array(
|
||||
'javelin-behavior',
|
||||
'javelin-dom',
|
||||
'javelin-stratcom',
|
||||
'javelin-uri',
|
||||
),
|
||||
'fa0f4fc2' => array(
|
||||
'javelin-behavior',
|
||||
'javelin-dom',
|
||||
|
@ -2136,7 +2148,7 @@ return array(
|
|||
'phabricator-draggable-list',
|
||||
'javelin-behavior-phabricator-transaction-list',
|
||||
'javelin-behavior-phabricator-show-older-transactions',
|
||||
'javelin-behavior-phui-timeline-dropdown-menu',
|
||||
'javelin-behavior-phui-dropdown-menu',
|
||||
'javelin-behavior-doorkeeper-tag',
|
||||
'phabricator-title',
|
||||
'javelin-leader',
|
||||
|
|
|
@ -66,7 +66,7 @@ return array(
|
|||
'phabricator-draggable-list',
|
||||
'javelin-behavior-phabricator-transaction-list',
|
||||
'javelin-behavior-phabricator-show-older-transactions',
|
||||
'javelin-behavior-phui-timeline-dropdown-menu',
|
||||
'javelin-behavior-phui-dropdown-menu',
|
||||
'javelin-behavior-doorkeeper-tag',
|
||||
'phabricator-title',
|
||||
'javelin-leader',
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
echo "Adding mailkeys to macros.\n";
|
||||
echo pht('Adding mailkeys to macros.')."\n";
|
||||
|
||||
$table = new PhabricatorFileImageMacro();
|
||||
$conn_w = $table->establishConnection('w');
|
||||
|
@ -8,7 +8,7 @@ $iterator = new LiskMigrationIterator($table);
|
|||
foreach ($iterator as $macro) {
|
||||
$id = $macro->getID();
|
||||
|
||||
echo "Populating macro {$id}...\n";
|
||||
echo pht('Populating macro %d...', $id)."\n";
|
||||
|
||||
if (!$macro->getMailKey()) {
|
||||
queryfx(
|
||||
|
@ -20,4 +20,4 @@ foreach ($iterator as $macro) {
|
|||
}
|
||||
}
|
||||
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
echo "Adding names to Drydock blueprints.\n";
|
||||
echo pht('Adding names to Drydock blueprints.')."\n";
|
||||
|
||||
$table = new DrydockBlueprint();
|
||||
$conn_w = $table->establishConnection('w');
|
||||
|
@ -8,7 +8,7 @@ $iterator = new LiskMigrationIterator($table);
|
|||
foreach ($iterator as $blueprint) {
|
||||
$id = $blueprint->getID();
|
||||
|
||||
echo "Populating blueprint {$id}...\n";
|
||||
echo pht('Populating blueprint %d...', $id)."\n";
|
||||
|
||||
if (!strlen($blueprint->getBlueprintName())) {
|
||||
queryfx(
|
||||
|
@ -20,4 +20,4 @@ foreach ($iterator as $blueprint) {
|
|||
}
|
||||
}
|
||||
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
echo "Adding secretkeys to legalpad document signatures.\n";
|
||||
echo pht('Adding secretkeys to legalpad document signatures.')."\n";
|
||||
|
||||
$table = new LegalpadDocumentSignature();
|
||||
$conn_w = $table->establishConnection('w');
|
||||
|
@ -8,7 +8,7 @@ $iterator = new LiskMigrationIterator($table);
|
|||
foreach ($iterator as $sig) {
|
||||
$id = $sig->getID();
|
||||
|
||||
echo "Populating signature {$id}...\n";
|
||||
echo pht('Populating signature %d...', $id)."\n";
|
||||
|
||||
if (!$sig->getSecretKey()) {
|
||||
queryfx(
|
||||
|
@ -20,4 +20,4 @@ foreach ($iterator as $sig) {
|
|||
}
|
||||
}
|
||||
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
|
@ -9,7 +9,7 @@ $conn_w = $session_table->establishConnection('w');
|
|||
foreach (new LiskMigrationIterator($session_table) as $session) {
|
||||
$id = $session->getID();
|
||||
|
||||
echo "Migrating session {$id}...\n";
|
||||
echo pht('Migrating session %d...', $id)."\n";
|
||||
$old_type = $session->getType();
|
||||
$new_type = preg_replace('/-.*$/', '', $old_type);
|
||||
|
||||
|
@ -23,4 +23,4 @@ foreach (new LiskMigrationIterator($session_table) as $session) {
|
|||
}
|
||||
}
|
||||
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
|
@ -3,11 +3,11 @@
|
|||
$table = new PhabricatorCalendarEvent();
|
||||
$conn_w = $table->establishConnection('w');
|
||||
|
||||
echo "Assigning PHIDs to events...\n";
|
||||
echo pht('Assigning PHIDs to events...')."\n";
|
||||
foreach (new LiskMigrationIterator($table) as $event) {
|
||||
$id = $event->getID();
|
||||
|
||||
echo "Updating event {$id}...\n";
|
||||
echo pht('Updating event %d...', $id)."\n";
|
||||
if ($event->getPHID()) {
|
||||
continue;
|
||||
}
|
||||
|
@ -19,4 +19,4 @@ foreach (new LiskMigrationIterator($table) as $event) {
|
|||
$table->generatePHID(),
|
||||
$id);
|
||||
}
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
|
@ -3,7 +3,8 @@
|
|||
$table = new HeraldCondition();
|
||||
$conn_w = $table->establishConnection('w');
|
||||
|
||||
echo "Migrating Herald conditions of type Herald rule from IDs to PHIDs...\n";
|
||||
echo pht(
|
||||
"Migrating Herald conditions of type Herald rule from IDs to PHIDs...\n");
|
||||
foreach (new LiskMigrationIterator($table) as $condition) {
|
||||
if ($condition->getFieldName() != HeraldAdapter::FIELD_RULE) {
|
||||
continue;
|
||||
|
@ -14,7 +15,7 @@ foreach (new LiskMigrationIterator($table) as $condition) {
|
|||
continue;
|
||||
}
|
||||
$id = $condition->getID();
|
||||
echo "Updating condition {$id}...\n";
|
||||
echo pht('Updating condition %s...', $id)."\n";
|
||||
|
||||
$rule = id(new HeraldRuleQuery())
|
||||
->setViewer(PhabricatorUser::getOmnipotentUser())
|
||||
|
@ -28,4 +29,4 @@ foreach (new LiskMigrationIterator($table) as $condition) {
|
|||
json_encode($rule->getPHID()),
|
||||
$id);
|
||||
}
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
|
@ -5,10 +5,9 @@ $table_name = id(new PhabricatorProjectCustomFieldStorage())->getTableName();
|
|||
|
||||
$rows = new LiskRawMigrationIterator($conn_w, 'project_profile');
|
||||
|
||||
echo "Migrating project descriptions to custom storage...\n";
|
||||
echo pht('Migrating project descriptions to custom storage...')."\n";
|
||||
foreach ($rows as $row) {
|
||||
$phid = $row['projectPHID'];
|
||||
echo "Migrating {$phid}...\n";
|
||||
|
||||
$desc = $row['blurb'];
|
||||
if (strlen($desc)) {
|
||||
|
@ -23,4 +22,4 @@ foreach ($rows as $row) {
|
|||
}
|
||||
}
|
||||
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
|
@ -7,18 +7,18 @@ $content_source = PhabricatorContentSource::newForSource(
|
|||
PhabricatorContentSource::SOURCE_LEGACY,
|
||||
array())->serialize();
|
||||
|
||||
echo "Migrating Differential comment text to modern storage...\n";
|
||||
echo pht('Migrating Differential comment text to modern storage...')."\n";
|
||||
foreach ($rows as $row) {
|
||||
$id = $row['id'];
|
||||
echo "Migrating Differential comment {$id}...\n";
|
||||
echo pht('Migrating Differential comment %d...', $id)."\n";
|
||||
if (!strlen($row['content'])) {
|
||||
echo "Comment has no text, continuing.\n";
|
||||
echo pht('Comment has no text, continuing.')."\n";
|
||||
continue;
|
||||
}
|
||||
|
||||
$revision = id(new DifferentialRevision())->load($row['revisionID']);
|
||||
if (!$revision) {
|
||||
echo "Comment has no valid revision, continuing.\n";
|
||||
echo pht('Comment has no valid revision, continuing.')."\n";
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -68,4 +68,4 @@ foreach ($rows as $row) {
|
|||
$row['id']);
|
||||
}
|
||||
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
|
@ -7,14 +7,14 @@ $content_source = PhabricatorContentSource::newForSource(
|
|||
PhabricatorContentSource::SOURCE_LEGACY,
|
||||
array())->serialize();
|
||||
|
||||
echo "Migrating Differential comments to modern storage...\n";
|
||||
echo pht('Migrating Differential comments to modern storage...')."\n";
|
||||
foreach ($rows as $row) {
|
||||
$id = $row['id'];
|
||||
echo "Migrating comment {$id}...\n";
|
||||
echo pht('Migrating comment %d...', $id)."\n";
|
||||
|
||||
$revision = id(new DifferentialRevision())->load($row['revisionID']);
|
||||
if (!$revision) {
|
||||
echo "No revision, continuing.\n";
|
||||
echo pht('No revision, continuing.')."\n";
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -219,4 +219,4 @@ foreach ($rows as $row) {
|
|||
}
|
||||
|
||||
}
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
|
@ -3,13 +3,13 @@
|
|||
$table = new PhabricatorRepositoryVCSPassword();
|
||||
$conn_w = $table->establishConnection('w');
|
||||
|
||||
echo "Upgrading password hashing for VCS passwords.\n";
|
||||
echo pht('Upgrading password hashing for VCS passwords.')."\n";
|
||||
|
||||
$best_hasher = PhabricatorPasswordHasher::getBestHasher();
|
||||
foreach (new LiskMigrationIterator($table) as $password) {
|
||||
$id = $password->getID();
|
||||
|
||||
echo "Migrating VCS password {$id}...\n";
|
||||
echo pht('Migrating VCS password %d...', $id)."\n";
|
||||
|
||||
$input_hash = $password->getPasswordHash();
|
||||
$input_envelope = new PhutilOpaqueEnvelope($input_hash);
|
||||
|
@ -24,4 +24,4 @@ foreach (new LiskMigrationIterator($table) as $password) {
|
|||
$id);
|
||||
}
|
||||
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
|
@ -3,12 +3,12 @@
|
|||
$conn_w = id(new DifferentialRevision())->establishConnection('w');
|
||||
$rows = new LiskRawMigrationIterator($conn_w, 'differential_auxiliaryfield');
|
||||
|
||||
echo "Modernizing Differential auxiliary field storage...\n";
|
||||
echo pht('Modernizing Differential auxiliary field storage...')."\n";
|
||||
|
||||
$table_name = id(new DifferentialCustomFieldStorage())->getTableName();
|
||||
foreach ($rows as $row) {
|
||||
$id = $row['id'];
|
||||
echo "Migrating row {$id}...\n";
|
||||
echo pht('Migrating row %d...', $id)."\n";
|
||||
queryfx(
|
||||
$conn_w,
|
||||
'INSERT IGNORE INTO %T (objectPHID, fieldIndex, fieldValue)
|
||||
|
@ -19,4 +19,4 @@ foreach ($rows as $row) {
|
|||
$row['value']);
|
||||
}
|
||||
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
|
@ -11,10 +11,10 @@ $status_map = array(
|
|||
|
||||
$conn_w = id(new ManiphestTask())->establishConnection('w');
|
||||
|
||||
echo "Migrating tasks to new status constants...\n";
|
||||
echo pht('Migrating tasks to new status constants...')."\n";
|
||||
foreach (new LiskMigrationIterator(new ManiphestTask()) as $task) {
|
||||
$id = $task->getID();
|
||||
echo "Migrating T{$id}...\n";
|
||||
echo pht('Migrating %s...', "T{$id}")."\n";
|
||||
|
||||
$status = $task->getStatus();
|
||||
if (isset($status_map[$status])) {
|
||||
|
@ -27,13 +27,13 @@ foreach (new LiskMigrationIterator(new ManiphestTask()) as $task) {
|
|||
}
|
||||
}
|
||||
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
||||
|
||||
echo "Migrating task transactions to new status constants...\n";
|
||||
echo pht('Migrating task transactions to new status constants...')."\n";
|
||||
foreach (new LiskMigrationIterator(new ManiphestTransaction()) as $xaction) {
|
||||
$id = $xaction->getID();
|
||||
echo "Migrating {$id}...\n";
|
||||
echo pht('Migrating %d...', $id)."\n";
|
||||
|
||||
if ($xaction->getTransactionType() == ManiphestTransaction::TYPE_STATUS) {
|
||||
$old = $xaction->getOldValue();
|
||||
|
@ -55,14 +55,14 @@ foreach (new LiskMigrationIterator(new ManiphestTransaction()) as $xaction) {
|
|||
$id);
|
||||
}
|
||||
}
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
||||
$conn_w = id(new PhabricatorSavedQuery())->establishConnection('w');
|
||||
|
||||
echo "Migrating searches to new status constants...\n";
|
||||
echo pht('Migrating searches to new status constants...')."\n";
|
||||
foreach (new LiskMigrationIterator(new PhabricatorSavedQuery()) as $query) {
|
||||
$id = $query->getID();
|
||||
echo "Migrating {$id}...\n";
|
||||
echo pht('Migrating %d...', $id)."\n";
|
||||
|
||||
if ($query->getEngineClassName() !== 'ManiphestTaskSearchEngine') {
|
||||
continue;
|
||||
|
@ -91,4 +91,4 @@ foreach (new LiskMigrationIterator(new PhabricatorSavedQuery()) as $query) {
|
|||
}
|
||||
}
|
||||
}
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
|
@ -14,14 +14,14 @@ $tables = array(
|
|||
id(new HarbormasterBuildTarget())->getTableName(),
|
||||
);
|
||||
|
||||
echo "Renaming Harbormaster classes...\n";
|
||||
echo pht('Renaming Harbormaster classes...')."\n";
|
||||
|
||||
$conn_w = id(new HarbormasterBuildStep())->establishConnection('w');
|
||||
foreach ($names as $name) {
|
||||
$old = $name;
|
||||
$new = 'Harbormaster'.$name;
|
||||
|
||||
echo "Renaming {$old} -> {$new}...\n";
|
||||
echo pht('Renaming %s -> %s...', $old, $new)."\n";
|
||||
foreach ($tables as $table) {
|
||||
queryfx(
|
||||
$conn_w,
|
||||
|
@ -32,4 +32,4 @@ foreach ($names as $name) {
|
|||
}
|
||||
}
|
||||
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
$conn_w = id(new PhabricatorRepository())->establishConnection('w');
|
||||
|
||||
echo "Adding transaction log event groups...\n";
|
||||
echo pht('Adding transaction log event groups...')."\n";
|
||||
|
||||
$logs = queryfx_all(
|
||||
$conn_w,
|
||||
|
@ -10,7 +10,7 @@ $logs = queryfx_all(
|
|||
'repository_pushlog');
|
||||
foreach ($logs as $log) {
|
||||
$id = $log['id'];
|
||||
echo "Migrating log {$id}...\n";
|
||||
echo pht('Migrating log %d...', $id)."\n";
|
||||
if ($log['pushEventPHID']) {
|
||||
continue;
|
||||
}
|
||||
|
@ -40,4 +40,4 @@ foreach ($logs as $log) {
|
|||
$log['transactionKey']);
|
||||
}
|
||||
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
<?php
|
||||
|
||||
echo "Updating users...\n";
|
||||
|
||||
echo pht('Updating users...')."\n";
|
||||
|
||||
foreach (new LiskMigrationIterator(new PhabricatorUser()) as $user) {
|
||||
|
||||
$id = $user->getID();
|
||||
echo "Updating {$id}...\n";
|
||||
echo pht('Updating %d...', $id)."\n";
|
||||
|
||||
if (strlen($user->getAccountSecret())) {
|
||||
continue;
|
||||
|
@ -20,4 +18,4 @@ foreach (new LiskMigrationIterator(new PhabricatorUser()) as $user) {
|
|||
$id);
|
||||
}
|
||||
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
|
@ -4,11 +4,11 @@ $pull_table = new ReleephRequest();
|
|||
$table_name = $pull_table->getTableName();
|
||||
$conn_w = $pull_table->establishConnection('w');
|
||||
|
||||
echo "Setting object PHIDs for requests...\n";
|
||||
echo pht('Setting object PHIDs for requests...')."\n";
|
||||
foreach (new LiskMigrationIterator($pull_table) as $pull) {
|
||||
$id = $pull->getID();
|
||||
|
||||
echo "Migrating pull request {$id}...\n";
|
||||
echo pht('Migrating pull request %d...', $id)."\n";
|
||||
if ($pull->getRequestedObjectPHID()) {
|
||||
// We already have a valid PHID, so skip this request.
|
||||
continue;
|
||||
|
@ -42,4 +42,4 @@ foreach (new LiskMigrationIterator($pull_table) as $pull) {
|
|||
$id);
|
||||
}
|
||||
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
|
@ -6,16 +6,16 @@ $conn_w = $project_table->establishConnection('w');
|
|||
$slug_table_name = id(new PhabricatorProjectSlug())->getTableName();
|
||||
$time = time();
|
||||
|
||||
echo "Migrating project phriction slugs...\n";
|
||||
echo pht('Migrating project phriction slugs...')."\n";
|
||||
foreach (new LiskMigrationIterator($project_table) as $project) {
|
||||
$id = $project->getID();
|
||||
|
||||
echo "Migrating project {$id}...\n";
|
||||
echo pht('Migrating project %d...', $id)."\n";
|
||||
$phriction_slug = rtrim($project->getPhrictionSlug(), '/');
|
||||
$slug = id(new PhabricatorProjectSlug())
|
||||
->loadOneWhere('slug = %s', $phriction_slug);
|
||||
if ($slug) {
|
||||
echo "Already migrated {$id}... Continuing.\n";
|
||||
echo pht('Already migrated %d... Continuing.', $id)."\n";
|
||||
continue;
|
||||
}
|
||||
queryfx(
|
||||
|
@ -27,7 +27,7 @@ foreach (new LiskMigrationIterator($project_table) as $project) {
|
|||
$phriction_slug,
|
||||
$time,
|
||||
$time);
|
||||
echo "Migrated {$id}.\n";
|
||||
echo pht('Migrated %d.', $id)."\n";
|
||||
}
|
||||
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
<?php
|
||||
|
||||
echo "Updating project datasource tokens...\n";
|
||||
echo pht('Updating project datasource tokens...')."\n";
|
||||
|
||||
foreach (new LiskMigrationIterator(new PhabricatorProject()) as $project) {
|
||||
$name = $project->getName();
|
||||
echo "Updating project '{$name}'...\n";
|
||||
echo pht("Updating project '%d'...", $name)."\n";
|
||||
$project->updateDatasourceTokens();
|
||||
}
|
||||
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
|
@ -74,7 +74,7 @@ foreach ($applications as $application) {
|
|||
|
||||
/* -( User preferences )--------------------------------------------------- */
|
||||
|
||||
echo "Migrating user preferences...\n";
|
||||
echo pht('Migrating user preferences...')."\n";
|
||||
$table = new PhabricatorUserPreferences();
|
||||
$conn_w = $table->establishConnection('w');
|
||||
$pref_pinned = PhabricatorUserPreferences::PREFERENCE_APP_PINNED;
|
||||
|
@ -107,7 +107,7 @@ foreach (new LiskMigrationIterator(new PhabricatorUser()) as $user) {
|
|||
|
||||
/* -( Dashboard installs )------------------------------------------------- */
|
||||
|
||||
echo "Migrating dashboard installs...\n";
|
||||
echo pht('Migrating dashboard installs...')."\n";
|
||||
$table = new PhabricatorDashboardInstall();
|
||||
$conn_w = $table->establishConnection('w');
|
||||
|
||||
|
@ -126,7 +126,7 @@ foreach (new LiskMigrationIterator($table) as $dashboard_install) {
|
|||
/* -( Phabricator configuration )------------------------------------------ */
|
||||
|
||||
$config_key = 'phabricator.uninstalled-applications';
|
||||
echo "Migrating `{$config_key}` config...\n";
|
||||
echo pht('Migrating `%s` config...', $config_key)."\n";
|
||||
|
||||
$config = PhabricatorConfigEntry::loadConfigEntry($config_key);
|
||||
$old_config = $config->getValue();
|
||||
|
@ -147,7 +147,7 @@ if ($old_config) {
|
|||
/* -( phabricator.application-settings )----------------------------------- */
|
||||
|
||||
$config_key = 'phabricator.application-settings';
|
||||
echo "Migrating `{$config_key}` config...\n";
|
||||
echo pht('Migrating `%s` config...', $config_key)."\n";
|
||||
|
||||
$config = PhabricatorConfigEntry::loadConfigEntry($config_key);
|
||||
$old_config = $config->getValue();
|
||||
|
|
|
@ -7,7 +7,7 @@ $conn_w->openTransaction();
|
|||
$src_table = 'audit_inlinecomment';
|
||||
$dst_table = 'audit_transaction_comment';
|
||||
|
||||
echo "Migrating Audit inline comments to new format...\n";
|
||||
echo pht('Migrating Audit inline comments to new format...')."\n";
|
||||
|
||||
$content_source = PhabricatorContentSource::newForSource(
|
||||
PhabricatorContentSource::SOURCE_LEGACY,
|
||||
|
@ -17,7 +17,7 @@ $rows = new LiskRawMigrationIterator($conn_w, $src_table);
|
|||
foreach ($rows as $row) {
|
||||
$id = $row['id'];
|
||||
|
||||
echo "Migrating inline #{$id}...\n";
|
||||
echo pht('Migrating inline #%d...', $id);
|
||||
|
||||
if ($row['auditCommentID']) {
|
||||
$xaction_phid = PhabricatorPHID::generateNewPHID(
|
||||
|
@ -74,4 +74,4 @@ foreach ($rows as $row) {
|
|||
}
|
||||
|
||||
$conn_w->saveTransaction();
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
|
@ -7,12 +7,12 @@ $content_source = PhabricatorContentSource::newForSource(
|
|||
PhabricatorContentSource::SOURCE_LEGACY,
|
||||
array())->serialize();
|
||||
|
||||
echo "Migrating Audit comment text to modern storage...\n";
|
||||
echo pht('Migrating Audit comment text to modern storage...')."\n";
|
||||
foreach ($rows as $row) {
|
||||
$id = $row['id'];
|
||||
echo "Migrating Audit comment {$id}...\n";
|
||||
echo pht('Migrating Audit comment %d...', $id)."\n";
|
||||
if (!strlen($row['content'])) {
|
||||
echo "Comment has no text, continuing.\n";
|
||||
echo pht('Comment has no text, continuing.')."\n";
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -58,4 +58,4 @@ foreach ($rows as $row) {
|
|||
$row['id']);
|
||||
}
|
||||
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
|
@ -18,7 +18,7 @@ $map = array(
|
|||
'PhabricatorAuthProviderOAuthWordPress' => 'PhabricatorWordPressAuthProvider',
|
||||
);
|
||||
|
||||
echo "Migrating auth providers...\n";
|
||||
echo pht('Migrating auth providers...')."\n";
|
||||
$table = new PhabricatorAuthProviderConfig();
|
||||
$conn_w = $table->establishConnection('w');
|
||||
|
||||
|
|
|
@ -7,10 +7,10 @@ $content_source = PhabricatorContentSource::newForSource(
|
|||
PhabricatorContentSource::SOURCE_LEGACY,
|
||||
array())->serialize();
|
||||
|
||||
echo "Migrating Audit comments to modern storage...\n";
|
||||
echo pht('Migrating Audit comments to modern storage...')."\n";
|
||||
foreach ($rows as $row) {
|
||||
$id = $row['id'];
|
||||
echo "Migrating comment {$id}...\n";
|
||||
echo pht('Migrating comment %d...', $id)."\n";
|
||||
|
||||
$comments = queryfx_all(
|
||||
$conn_w,
|
||||
|
@ -147,4 +147,4 @@ foreach ($rows as $row) {
|
|||
|
||||
}
|
||||
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
|
@ -3,11 +3,11 @@
|
|||
$table = new PhabricatorRepositoryAuditRequest();
|
||||
$conn_w = $table->establishConnection('w');
|
||||
|
||||
echo "Migrating Audit subscribers to subscriptions...\n";
|
||||
echo pht('Migrating Audit subscribers to subscriptions...')."\n";
|
||||
foreach (new LiskMigrationIterator($table) as $request) {
|
||||
$id = $request->getID();
|
||||
|
||||
echo "Migrating auditor {$id}...\n";
|
||||
echo pht("Migrating audit %d...\n", $id);
|
||||
|
||||
if ($request->getAuditStatus() != 'cc') {
|
||||
// This isn't a "subscriber", so skip it.
|
||||
|
@ -27,4 +27,4 @@ foreach (new LiskMigrationIterator($table) as $request) {
|
|||
$request->delete();
|
||||
}
|
||||
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
|
@ -4,7 +4,7 @@ $table = new PhabricatorFile();
|
|||
$conn_w = $table->establishConnection('w');
|
||||
foreach (new LiskMigrationIterator($table) as $file) {
|
||||
$id = $file->getID();
|
||||
echo "Updating flags for file {$id}...\n";
|
||||
echo pht('Updating flags for file %d...', $id)."\n";
|
||||
$meta = $file->getMetadata();
|
||||
if (!idx($meta, 'canCDN')) {
|
||||
|
||||
|
|
|
@ -19,12 +19,12 @@ foreach ($rows as $row) {
|
|||
|
||||
$sql = array();
|
||||
foreach ($cols as $col_phid => $obj_phids) {
|
||||
echo "Migrating column '{$col_phid}'...\n";
|
||||
echo pht("Migrating column '%s'...", $col_phid)."\n";
|
||||
$column = id(new PhabricatorProjectColumn())->loadOneWhere(
|
||||
'phid = %s',
|
||||
$col_phid);
|
||||
if (!$column) {
|
||||
echo "Column '{$col_phid}' does not exist.\n";
|
||||
echo pht("Column '%s' does not exist.", $col_phid)."\n";
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -40,7 +40,7 @@ foreach ($cols as $col_phid => $obj_phids) {
|
|||
}
|
||||
}
|
||||
|
||||
echo "Inserting rows...\n";
|
||||
echo pht('Inserting rows...')."\n";
|
||||
foreach (PhabricatorLiskDAO::chunkSQL($sql) as $chunk) {
|
||||
queryfx(
|
||||
$conn_w,
|
||||
|
@ -50,4 +50,4 @@ foreach (PhabricatorLiskDAO::chunkSQL($sql) as $chunk) {
|
|||
$chunk);
|
||||
}
|
||||
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
|
@ -6,7 +6,7 @@ $conn_w = $table->establishConnection('w');
|
|||
foreach (new LiskMigrationIterator($table) as $column) {
|
||||
$id = $column->getID();
|
||||
|
||||
echo "Adjusting column {$id}...\n";
|
||||
echo pht('Adjusting column %d...', $id)."\n";
|
||||
if ($column->getSequence() == 0) {
|
||||
|
||||
$properties = $column->getProperties();
|
||||
|
@ -21,4 +21,4 @@ foreach (new LiskMigrationIterator($table) as $column) {
|
|||
}
|
||||
}
|
||||
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
|
@ -7,7 +7,10 @@ $table = new PhabricatorFile();
|
|||
$conn_w = $table->establishConnection('w');
|
||||
foreach (new LiskMigrationIterator($table) as $file) {
|
||||
$id = $file->getID();
|
||||
echo "Updating capitalization of canCDN property for file {$id}...\n";
|
||||
echo pht(
|
||||
"Updating capitalization of %s property for file %d...\n",
|
||||
'canCDN',
|
||||
$id);
|
||||
$meta = $file->getMetadata();
|
||||
|
||||
if (isset($meta['cancdn'])) {
|
||||
|
|
|
@ -4,7 +4,7 @@ $table = new PhabricatorFileImageMacro();
|
|||
foreach (new LiskMigrationIterator($table) as $macro) {
|
||||
$name = $macro->getName();
|
||||
|
||||
echo "Linking macro '{$name}'...\n";
|
||||
echo pht("Linking macro '%s'...", $name)."\n";
|
||||
|
||||
$editor = new PhabricatorEdgeEditor();
|
||||
|
||||
|
@ -16,11 +16,11 @@ foreach (new LiskMigrationIterator($table) as $macro) {
|
|||
foreach ($phids as $phid) {
|
||||
$editor->addEdge(
|
||||
$macro->getPHID(),
|
||||
PhabricatorObjectHasFileEdgeType::EDGECONST ,
|
||||
PhabricatorObjectHasFileEdgeType::EDGECONST,
|
||||
$phid);
|
||||
}
|
||||
$editor->save();
|
||||
}
|
||||
}
|
||||
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
|
@ -3,16 +3,16 @@
|
|||
$old_key = 'phabricator.show-beta-applications';
|
||||
$new_key = 'phabricator.show-prototypes';
|
||||
|
||||
echo "Migrating '{$old_key}' to '{$new_key}'...\n";
|
||||
echo pht("Migrating '%s' to '%s'...", $old_key, $new_key)."\n";
|
||||
|
||||
if (PhabricatorEnv::getEnvConfig($new_key)) {
|
||||
echo "Skipping migration, new data is already set.\n";
|
||||
echo pht('Skipping migration, new data is already set.')."\n";
|
||||
return;
|
||||
}
|
||||
|
||||
$old = PhabricatorEnv::getEnvConfigIfExists($old_key);
|
||||
if (!$old) {
|
||||
echo "Skipping migration, old data does not exist.\n";
|
||||
echo pht('Skipping migration, old data does not exist.')."\n";
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -21,4 +21,4 @@ PhabricatorConfigEntry::loadConfigEntry($new_key)
|
|||
->setValue($old)
|
||||
->save();
|
||||
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
$table = new PhrictionDocument();
|
||||
$conn_w = $table->establishConnection('w');
|
||||
|
||||
echo "Populating Phriction policies.\n";
|
||||
echo pht('Populating Phriction policies.')."\n";
|
||||
|
||||
$default_view_policy = PhabricatorPolicies::POLICY_USER;
|
||||
$default_edit_policy = PhabricatorPolicies::POLICY_USER;
|
||||
|
@ -12,7 +12,7 @@ foreach (new LiskMigrationIterator($table) as $doc) {
|
|||
$id = $doc->getID();
|
||||
|
||||
if ($doc->getViewPolicy() && $doc->getEditPolicy()) {
|
||||
echo "Skipping doc $id; already has policy set.\n";
|
||||
echo pht('Skipping document %d; already has policy set.', $id)."\n";
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -38,7 +38,10 @@ foreach (new LiskMigrationIterator($table) as $doc) {
|
|||
$edit_policy = nonempty($project->getEditPolicy(), $default_edit_policy);
|
||||
|
||||
$project_name = $project->getName();
|
||||
echo "Migrating doc $id to project policy $project_name...\n";
|
||||
echo pht(
|
||||
"Migrating document %d to project policy %s...\n",
|
||||
$id,
|
||||
$project_name);
|
||||
$doc->setViewPolicy($view_policy);
|
||||
$doc->setEditPolicy($edit_policy);
|
||||
$doc->save();
|
||||
|
@ -46,10 +49,10 @@ foreach (new LiskMigrationIterator($table) as $doc) {
|
|||
}
|
||||
}
|
||||
|
||||
echo "Migrating doc $id to default install policy...\n";
|
||||
echo pht('Migrating document %d to default install policy...', $id)."\n";
|
||||
$doc->setViewPolicy($default_view_policy);
|
||||
$doc->setEditPolicy($default_edit_policy);
|
||||
$doc->save();
|
||||
}
|
||||
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
$table = new PhrictionDocument();
|
||||
$conn_w = $table->establishConnection('w');
|
||||
|
||||
echo "Populating Phriction mailkeys.\n";
|
||||
echo pht('Populating Phriction mailkeys.')."\n";
|
||||
|
||||
foreach (new LiskMigrationIterator($table) as $doc) {
|
||||
$id = $doc->getID();
|
||||
|
@ -12,10 +12,10 @@ foreach (new LiskMigrationIterator($table) as $doc) {
|
|||
if ((strlen($key) == 20) && (strpos($key, "\0") === false)) {
|
||||
// To be valid, keys must have length 20 and not contain any null bytes.
|
||||
// See T6487.
|
||||
echo "Document has valid mailkey.\n";
|
||||
echo pht('Document has valid mailkey.')."\n";
|
||||
continue;
|
||||
} else {
|
||||
echo "Populating mailkey for document {$id}...\n";
|
||||
echo pht('Populating mailkey for document %d...', $id)."\n";
|
||||
$mail_key = Filesystem::readRandomCharacters(20);
|
||||
queryfx(
|
||||
$conn_w,
|
||||
|
@ -26,4 +26,4 @@ foreach (new LiskMigrationIterator($table) as $doc) {
|
|||
}
|
||||
}
|
||||
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
|
@ -3,18 +3,18 @@
|
|||
$table = new PhabricatorAuthSSHKey();
|
||||
$conn_w = $table->establishConnection('w');
|
||||
|
||||
echo "Updating SSH public key indexes...\n";
|
||||
echo pht('Updating SSH public key indexes...')."\n";
|
||||
|
||||
$keys = new LiskMigrationIterator($table);
|
||||
foreach ($keys as $key) {
|
||||
$id = $key->getID();
|
||||
|
||||
echo "Updating key {$id}...\n";
|
||||
echo pht('Updating key %d...', $id)."\n";
|
||||
|
||||
try {
|
||||
$hash = $key->toPublicKey()->getHash();
|
||||
} catch (Exception $ex) {
|
||||
echo "Key has bad format! Removing key.\n";
|
||||
echo pht('Key has bad format! Removing key.')."\n";
|
||||
queryfx(
|
||||
$conn_w,
|
||||
'DELETE FROM %T WHERE id = %d',
|
||||
|
@ -30,7 +30,7 @@ foreach ($keys as $key) {
|
|||
$hash,
|
||||
$key->getID());
|
||||
if ($collision) {
|
||||
echo "Key is a duplicate! Removing key.\n";
|
||||
echo pht('Key is a duplicate! Removing key.')."\n";
|
||||
queryfx(
|
||||
$conn_w,
|
||||
'DELETE FROM %T WHERE id = %d',
|
||||
|
@ -47,4 +47,4 @@ foreach ($keys as $key) {
|
|||
$key->getID());
|
||||
}
|
||||
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
$table = new PhabricatorRepositoryAuditRequest();
|
||||
$conn_w = $table->establishConnection('w');
|
||||
|
||||
echo "Removing duplicate Audit requests...\n";
|
||||
echo pht('Removing duplicate Audit requests...')."\n";
|
||||
$seen_audit_map = array();
|
||||
foreach (new LiskMigrationIterator($table) as $request) {
|
||||
$commit_phid = $request->getCommitPHID();
|
||||
|
@ -19,4 +19,4 @@ foreach (new LiskMigrationIterator($table) as $request) {
|
|||
$seen_audit_map[$commit_phid][$auditor_phid] = 1;
|
||||
}
|
||||
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
|
@ -3,8 +3,9 @@
|
|||
$table = new ManiphestTransaction();
|
||||
$conn_w = $table->establishConnection('w');
|
||||
|
||||
echo "Converting Maniphest CC transactions to modern SUBSCRIBER ".
|
||||
"transactions...\n";
|
||||
echo pht(
|
||||
"Converting Maniphest CC transactions to modern ".
|
||||
"subscriber transactions...\n");
|
||||
foreach (new LiskMigrationIterator($table) as $txn) {
|
||||
// ManiphestTransaction::TYPE_CCS
|
||||
if ($txn->getTransactionType() == 'ccs') {
|
||||
|
@ -17,4 +18,4 @@ foreach (new LiskMigrationIterator($table) as $txn) {
|
|||
}
|
||||
}
|
||||
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
$table = new ManiphestTransaction();
|
||||
$conn_w = $table->establishConnection('w');
|
||||
|
||||
echo "Converting Maniphest project transactions to modern EDGE ".
|
||||
"transactions...\n";
|
||||
echo pht(
|
||||
"Converting Maniphest project transactions to modern edge transactions...\n");
|
||||
$metadata = array(
|
||||
'edge:type' => PhabricatorProjectObjectHasProjectEdgeType::EDGECONST,
|
||||
);
|
||||
|
@ -31,7 +31,7 @@ foreach (new LiskMigrationIterator($table) as $txn) {
|
|||
}
|
||||
}
|
||||
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
||||
function mig20141222_build_edge_data(array $project_phids, $task_phid) {
|
||||
$edge_data = array();
|
||||
|
|
|
@ -15,7 +15,7 @@ foreach ($policies as $policy) {
|
|||
$map[$old_name] = $new_name;
|
||||
}
|
||||
|
||||
echo "Migrating policies...\n";
|
||||
echo pht('Migrating policies...')."\n";
|
||||
$table = new PhabricatorPolicy();
|
||||
$conn_w = $table->establishConnection('w');
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
|
||||
$key = 'metamta.maniphest.public-create-email';
|
||||
echo "Migrating `$key` to new application email infrastructure...\n";
|
||||
echo pht("Migrating `%s` to new application email infrastructure...\n", $key);
|
||||
$value = PhabricatorEnv::getEnvConfigIfExists($key);
|
||||
$maniphest = new PhabricatorManiphestApplication();
|
||||
|
||||
|
@ -13,8 +13,8 @@ if ($value) {
|
|||
->setApplicationPHID($maniphest->getPHID())
|
||||
->save();
|
||||
} catch (AphrontDuplicateKeyQueryException $ex) {
|
||||
// already migrated?
|
||||
// Already migrated?
|
||||
}
|
||||
}
|
||||
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
|
||||
$key = 'metamta.maniphest.default-public-author';
|
||||
echo "Migrating `$key` to new application email infrastructure...\n";
|
||||
echo pht("Migrating `%s` to new application email infrastructure...\n", $key);
|
||||
$value = PhabricatorEnv::getEnvConfigIfExists($key);
|
||||
$maniphest = new PhabricatorManiphestApplication();
|
||||
$config_key =
|
||||
|
@ -19,4 +19,4 @@ if ($value) {
|
|||
}
|
||||
}
|
||||
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
|
@ -2,8 +2,10 @@
|
|||
|
||||
$key_files = 'metamta.files.public-create-email';
|
||||
$key_paste = 'metamta.paste.public-create-email';
|
||||
echo "Migrating `$key_files` and `$key_paste` to new application email ".
|
||||
"infrastructure...\n";
|
||||
echo pht(
|
||||
"Migrating `%s` and `%s` to new application email infrastructure...\n",
|
||||
$key_files,
|
||||
$key_paste);
|
||||
|
||||
$value_files = PhabricatorEnv::getEnvConfigIfExists($key_files);
|
||||
$files_app = new PhabricatorFilesApplication();
|
||||
|
@ -16,7 +18,7 @@ if ($value_files) {
|
|||
->setApplicationPHID($files_app->getPHID())
|
||||
->save();
|
||||
} catch (AphrontDuplicateKeyQueryException $ex) {
|
||||
// already migrated?
|
||||
// Already migrated?
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -31,8 +33,8 @@ if ($value_paste) {
|
|||
->setApplicationPHID($paste_app->getPHID())
|
||||
->save();
|
||||
} catch (AphrontDuplicateKeyQueryException $ex) {
|
||||
// already migrated?
|
||||
// Already migrated?
|
||||
}
|
||||
}
|
||||
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
echo "Adding mailkeys to events.\n";
|
||||
echo pht('Adding %s to events.', 'mailkeys')."\n";
|
||||
|
||||
$table = new PhabricatorCalendarEvent();
|
||||
$conn_w = $table->establishConnection('w');
|
||||
|
@ -8,7 +8,7 @@ $iterator = new LiskMigrationIterator($table);
|
|||
foreach ($iterator as $event) {
|
||||
$id = $event->getID();
|
||||
|
||||
echo "Populating event {$id}...\n";
|
||||
echo pht('Populating event %d...', $id)."\n";
|
||||
|
||||
queryfx(
|
||||
$conn_w,
|
||||
|
@ -18,4 +18,4 @@ foreach ($iterator as $event) {
|
|||
$id);
|
||||
}
|
||||
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
78
resources/sql/autopatches/20150504.symbolsproject.1.php
Normal file
78
resources/sql/autopatches/20150504.symbolsproject.1.php
Normal file
|
@ -0,0 +1,78 @@
|
|||
<?php
|
||||
|
||||
$table_w = new PhabricatorRepository();
|
||||
$conn_w = $table_w->establishConnection('w');
|
||||
|
||||
// Repository and Project share a database.
|
||||
$conn_r = $table_w->establishConnection('r');
|
||||
$projects_table = 'repository_arcanistproject';
|
||||
|
||||
$raw_projects_data = queryfx_all($conn_r, 'SELECT * FROM %T', $projects_table);
|
||||
$raw_projects_data = ipull($raw_projects_data, null, 'id');
|
||||
|
||||
$repository_ids = ipull($raw_projects_data, 'repositoryID');
|
||||
$repositories = id(new PhabricatorRepositoryQuery())
|
||||
->setViewer(PhabricatorUser::getOmnipotentUser())
|
||||
->withIDs($repository_ids)
|
||||
->execute();
|
||||
|
||||
$projects_to_repo_ids_map = ipull($raw_projects_data, 'repositoryID', 'phid');
|
||||
$projects_to_repos_map = array();
|
||||
foreach ($projects_to_repo_ids_map as $projectPHID => $repositoryID) {
|
||||
$repo = idx($repositories, $repositoryID);
|
||||
if ($repo) {
|
||||
$projects_to_repos_map[$projectPHID] = $repo->getPHID();
|
||||
}
|
||||
}
|
||||
|
||||
foreach ($raw_projects_data as $project_row) {
|
||||
$repositoryID = idx($project_row, 'repositoryID');
|
||||
$repo = idx($repositories, $repositoryID);
|
||||
|
||||
if (!$repo) {
|
||||
continue;
|
||||
}
|
||||
|
||||
echo pht(
|
||||
"Migrating symbols configuration for '%s' project...\n",
|
||||
idx($project_row, 'name', '???'));
|
||||
|
||||
$symbol_index_projects = $project_row['symbolIndexProjects'];
|
||||
$symbol_index_projects = nonempty($symbol_index_projects, '[]');
|
||||
try {
|
||||
$symbol_index_projects = phutil_json_decode($symbol_index_projects);
|
||||
} catch (PhutilJSONParserException $ex) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$sources = $repo->getDetail('symbol-sources', array());
|
||||
foreach ($symbol_index_projects as $index_project) {
|
||||
$sources[] = idx($projects_to_repos_map, $index_project);
|
||||
}
|
||||
$sources = array_filter($sources);
|
||||
$sources = array_unique($sources);
|
||||
|
||||
$repo->setDetail('symbol-sources', $sources);
|
||||
|
||||
$languages = $project_row['symbolIndexLanguages'];
|
||||
$languages = nonempty($languages, '[]');
|
||||
try {
|
||||
$languages = phutil_json_decode($languages);
|
||||
} catch (PhutilJSONParserException $ex) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$languages = array_merge(
|
||||
$repo->getDetail('symbol-languages', array()),
|
||||
$languages);
|
||||
$languages = array_unique($languages);
|
||||
|
||||
$repo->setDetail('symbol-languages', $languages);
|
||||
|
||||
queryfx(
|
||||
$conn_w,
|
||||
'UPDATE %T SET details = %s WHERE id = %d',
|
||||
$table_w->getTableName(),
|
||||
json_encode($repo->getDetails()),
|
||||
$repo->getID());
|
||||
}
|
3
resources/sql/autopatches/20150504.symbolsproject.2.sql
Normal file
3
resources/sql/autopatches/20150504.symbolsproject.2.sql
Normal file
|
@ -0,0 +1,3 @@
|
|||
ALTER TABLE {$NAMESPACE}_repository.repository_arcanistproject
|
||||
DROP COLUMN symbolIndexLanguages,
|
||||
DROP COLUMN symbolIndexProjects;
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
echo "Retro-naming unnamed events.\n";
|
||||
echo pht('Retro-naming unnamed events.')."\n";
|
||||
|
||||
$table = new PhabricatorCalendarEvent();
|
||||
$conn_w = $table->establishConnection('w');
|
||||
|
@ -9,14 +9,19 @@ foreach ($iterator as $event) {
|
|||
$id = $event->getID();
|
||||
|
||||
if (strlen($event->getName()) == 0) {
|
||||
echo "Renaming event {$id}...\n";
|
||||
echo pht('Renaming event %d...', $id)."\n";
|
||||
$viewer = PhabricatorUser::getOmnipotentUser();
|
||||
$handle = id(new PhabricatorHandleQuery())
|
||||
|
||||
// NOTE: This uses PeopleQuery directly, instead of HandleQuery, to avoid
|
||||
// performing cache fills as a side effect; the caches were added by a
|
||||
// later patch. See T8209.
|
||||
$user = id(new PhabricatorPeopleQuery())
|
||||
->setViewer($viewer)
|
||||
->withPHIDs(array($event->getUserPHID()))
|
||||
->executeOne();
|
||||
if ($handle->isComplete()) {
|
||||
$new_name = $handle->getName();
|
||||
|
||||
if ($user) {
|
||||
$new_name = $user->getUsername();
|
||||
} else {
|
||||
$new_name = pht('Unnamed Event');
|
||||
}
|
||||
|
@ -30,4 +35,4 @@ foreach ($iterator as $event) {
|
|||
}
|
||||
}
|
||||
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
2
resources/sql/autopatches/20150514.calendar.status.sql
Normal file
2
resources/sql/autopatches/20150514.calendar.status.sql
Normal file
|
@ -0,0 +1,2 @@
|
|||
ALTER TABLE {$NAMESPACE}_calendar.calendar_event
|
||||
DROP status;
|
19
resources/sql/autopatches/20150514.phame.blog.xaction.sql
Normal file
19
resources/sql/autopatches/20150514.phame.blog.xaction.sql
Normal file
|
@ -0,0 +1,19 @@
|
|||
CREATE TABLE {$NAMESPACE}_phame.phame_blogtransaction (
|
||||
id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
||||
phid VARBINARY(64) NOT NULL,
|
||||
authorPHID VARBINARY(64) NOT NULL,
|
||||
objectPHID VARBINARY(64) NOT NULL,
|
||||
viewPolicy VARBINARY(64) NOT NULL,
|
||||
editPolicy VARBINARY(64) NOT NULL,
|
||||
commentPHID VARBINARY(64) DEFAULT NULL,
|
||||
commentVersion INT UNSIGNED NOT NULL,
|
||||
transactionType VARCHAR(32) COLLATE {$COLLATE_TEXT} NOT NULL,
|
||||
oldValue LONGTEXT COLLATE {$COLLATE_TEXT} NOT NULL,
|
||||
newValue LONGTEXT COLLATE {$COLLATE_TEXT} NOT NULL,
|
||||
contentSource LONGTEXT COLLATE {$COLLATE_TEXT} NOT NULL,
|
||||
metadata LONGTEXT COLLATE {$COLLATE_TEXT} NOT NULL,
|
||||
dateCreated INT UNSIGNED NOT NULL,
|
||||
dateModified INT UNSIGNED NOT NULL,
|
||||
UNIQUE KEY `key_phid` (`phid`),
|
||||
KEY `key_object` (`objectPHID`)
|
||||
) ENGINE=InnoDB, COLLATE {$COLLATE_TEXT};
|
5
resources/sql/autopatches/20150514.user.cache.2.sql
Normal file
5
resources/sql/autopatches/20150514.user.cache.2.sql
Normal file
|
@ -0,0 +1,5 @@
|
|||
ALTER TABLE {$NAMESPACE}_user.user
|
||||
ADD availabilityCache VARCHAR(255) COLLATE {$COLLATE_TEXT};
|
||||
|
||||
ALTER TABLE {$NAMESPACE}_user.user
|
||||
ADD availabilityCacheTTL INT UNSIGNED;
|
19
resources/sql/autopatches/20150515.phame.post.xaction.sql
Normal file
19
resources/sql/autopatches/20150515.phame.post.xaction.sql
Normal file
|
@ -0,0 +1,19 @@
|
|||
CREATE TABLE {$NAMESPACE}_phame.phame_posttransaction (
|
||||
id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
||||
phid VARBINARY(64) NOT NULL,
|
||||
authorPHID VARBINARY(64) NOT NULL,
|
||||
objectPHID VARBINARY(64) NOT NULL,
|
||||
viewPolicy VARBINARY(64) NOT NULL,
|
||||
editPolicy VARBINARY(64) NOT NULL,
|
||||
commentPHID VARBINARY(64) DEFAULT NULL,
|
||||
commentVersion INT UNSIGNED NOT NULL,
|
||||
transactionType VARCHAR(32) COLLATE {$COLLATE_TEXT} NOT NULL,
|
||||
oldValue LONGTEXT COLLATE {$COLLATE_TEXT} NOT NULL,
|
||||
newValue LONGTEXT COLLATE {$COLLATE_TEXT} NOT NULL,
|
||||
contentSource LONGTEXT COLLATE {$COLLATE_TEXT} NOT NULL,
|
||||
metadata LONGTEXT COLLATE {$COLLATE_TEXT} NOT NULL,
|
||||
dateCreated INT UNSIGNED NOT NULL,
|
||||
dateModified INT UNSIGNED NOT NULL,
|
||||
UNIQUE KEY `key_phid` (`phid`),
|
||||
KEY `key_object` (`objectPHID`)
|
||||
) ENGINE=InnoDB, COLLATE {$COLLATE_TEXT};
|
2
resources/sql/autopatches/20150515.project.mailkey.1.sql
Normal file
2
resources/sql/autopatches/20150515.project.mailkey.1.sql
Normal file
|
@ -0,0 +1,2 @@
|
|||
ALTER TABLE {$NAMESPACE}_project.project
|
||||
ADD mailKey binary(20) NOT NULL;
|
18
resources/sql/autopatches/20150515.project.mailkey.2.php
Normal file
18
resources/sql/autopatches/20150515.project.mailkey.2.php
Normal file
|
@ -0,0 +1,18 @@
|
|||
<?php
|
||||
|
||||
$table = new PhabricatorProject();
|
||||
$conn_w = $table->establishConnection('w');
|
||||
$iterator = new LiskMigrationIterator($table);
|
||||
foreach ($iterator as $project) {
|
||||
$id = $project->getID();
|
||||
|
||||
echo pht('Adding mail key for project %d...', $id);
|
||||
echo "\n";
|
||||
|
||||
queryfx(
|
||||
$conn_w,
|
||||
'UPDATE %T SET mailKey = %s WHERE id = %d',
|
||||
$table->getTableName(),
|
||||
Filesystem::readRandomCharacters(20),
|
||||
$id);
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
ALTER TABLE {$NAMESPACE}_calendar.calendar_event
|
||||
ADD COLUMN icon VARCHAR(32) COLLATE {$COLLATE_TEXT} NOT NULL;
|
||||
|
||||
UPDATE {$NAMESPACE}_calendar.calendar_event
|
||||
SET icon = "fa-calendar" WHERE icon = "";
|
|
@ -15,17 +15,18 @@ if (!$tables) {
|
|||
return;
|
||||
}
|
||||
|
||||
echo "There are ".count($tables)." tables using the MyISAM engine. These will ".
|
||||
"now be converted to InnoDB. This process may take a few minutes, please ".
|
||||
"be patient.\n";
|
||||
echo pht(
|
||||
"There are %d tables using the MyISAM engine. These will now be converted ".
|
||||
"to InnoDB. This process may take a few minutes, please be patient.\n",
|
||||
count($tables));
|
||||
|
||||
foreach ($tables as $table) {
|
||||
$name = $table['db'].'.'.$table['tbl'];
|
||||
echo "Converting {$name}...\n";
|
||||
echo pht('Converting %s...', $name)."\n";
|
||||
queryfx(
|
||||
$conn,
|
||||
'ALTER TABLE %T.%T ENGINE=InnoDB',
|
||||
$table['db'],
|
||||
$table['tbl']);
|
||||
}
|
||||
echo "Done!\n";
|
||||
echo pht('Done!')."\n";
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
<?php
|
||||
|
||||
echo "Indexing username tokens for typeaheads...\n";
|
||||
echo pht('Indexing username tokens for typeaheads...')."\n";
|
||||
|
||||
$table = new PhabricatorUser();
|
||||
$table->openTransaction();
|
||||
$table->beginReadLocking();
|
||||
|
||||
$users = $table->loadAll();
|
||||
echo count($users).' users to index';
|
||||
echo pht('%d users to index', count($users));
|
||||
foreach ($users as $user) {
|
||||
$user->updateNameTokens();
|
||||
echo '.';
|
||||
|
@ -15,4 +15,4 @@ foreach ($users as $user) {
|
|||
|
||||
$table->endReadLocking();
|
||||
$table->saveTransaction();
|
||||
echo "\nDone.\n";
|
||||
echo "\n".pht('Done.')."\n";
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
<?php
|
||||
|
||||
echo "Generating file keys...\n";
|
||||
echo pht('Generating file keys...')."\n";
|
||||
$table = new PhabricatorFile();
|
||||
$table->openTransaction();
|
||||
$table->beginReadLocking();
|
||||
|
||||
$files = $table->loadAllWhere('secretKey IS NULL');
|
||||
echo count($files).' files to generate keys for';
|
||||
echo pht('%d files to generate keys for', count($files));
|
||||
foreach ($files as $file) {
|
||||
queryfx(
|
||||
$file->establishConnection('w'),
|
||||
|
@ -19,4 +19,4 @@ foreach ($files as $file) {
|
|||
|
||||
$table->endReadLocking();
|
||||
$table->saveTransaction();
|
||||
echo "\nDone.\n";
|
||||
echo "\n".pht('Done.')."\n";
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
echo "Ensuring project names are unique enough...\n";
|
||||
echo pht('Ensuring project names are unique enough...')."\n";
|
||||
$table = new PhabricatorProject();
|
||||
$table->openTransaction();
|
||||
$table->beginReadLocking();
|
||||
|
@ -14,8 +14,8 @@ foreach ($projects as $project) {
|
|||
$slug = $project->getPhrictionSlug();
|
||||
if ($slug == '/') {
|
||||
$project_id = $project->getID();
|
||||
echo "Project #{$project_id} doesn't have a meaningful name...\n";
|
||||
$project->setName(trim('Unnamed Project '.$project->getName()));
|
||||
echo pht("Project #%d doesn't have a meaningful name...", $project_id)."\n";
|
||||
$project->setName(trim(pht('Unnamed Project %s', $project->getName())));
|
||||
}
|
||||
$slug_map[$slug][] = $project->getID();
|
||||
}
|
||||
|
@ -25,15 +25,18 @@ foreach ($slug_map as $slug => $similar) {
|
|||
if (count($similar) <= 1) {
|
||||
continue;
|
||||
}
|
||||
echo "Too many projects are similar to '{$slug}'...\n";
|
||||
echo pht("Too many projects are similar to '%s'...", $slug)."\n";
|
||||
|
||||
foreach (array_slice($similar, 1, null, true) as $key => $project_id) {
|
||||
$project = $projects[$project_id];
|
||||
$old_name = $project->getName();
|
||||
$new_name = rename_project($project, $projects);
|
||||
|
||||
echo "Renaming project #{$project_id} ".
|
||||
"from '{$old_name}' to '{$new_name}'.\n";
|
||||
echo pht(
|
||||
"Renaming project #%d from '%s' to '%s'.\n",
|
||||
$project_id,
|
||||
$old_name,
|
||||
$new_name);
|
||||
$project->setName($new_name);
|
||||
}
|
||||
}
|
||||
|
@ -47,7 +50,7 @@ while ($update) {
|
|||
$project->setPhrictionSlug($name);
|
||||
$slug = $project->getPhrictionSlug();
|
||||
|
||||
echo "Updating project #{$id} '{$name}' ({$slug})...";
|
||||
echo pht("Updating project #%d '%s' (%s)... ", $id, $name, $slug);
|
||||
try {
|
||||
queryfx(
|
||||
$project->establishConnection('w'),
|
||||
|
@ -57,22 +60,23 @@ while ($update) {
|
|||
$slug,
|
||||
$project->getID());
|
||||
unset($update[$key]);
|
||||
echo "okay.\n";
|
||||
echo pht('OKAY')."\n";
|
||||
} catch (AphrontDuplicateKeyQueryException $ex) {
|
||||
echo "failed, will retry.\n";
|
||||
echo pht('Failed, will retry.')."\n";
|
||||
}
|
||||
}
|
||||
if (count($update) == $size) {
|
||||
throw new Exception(
|
||||
'Failed to make any progress while updating projects. Schema upgrade '.
|
||||
'has failed. Go manually fix your project names to be unique (they are '.
|
||||
'probably ridiculous?) and then try again.');
|
||||
pht(
|
||||
'Failed to make any progress while updating projects. Schema upgrade '.
|
||||
'has failed. Go manually fix your project names to be unique '.
|
||||
'(they are probably ridiculous?) and then try again.'));
|
||||
}
|
||||
}
|
||||
|
||||
$table->endReadLocking();
|
||||
$table->saveTransaction();
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
echo "Stripping remotes from repository default branches...\n";
|
||||
echo pht('Stripping remotes from repository default branches...')."\n";
|
||||
|
||||
$table = new PhabricatorRepository();
|
||||
$table->openTransaction();
|
||||
|
@ -30,8 +30,13 @@ foreach ($repos as $repo) {
|
|||
$id = $repo['id'];
|
||||
$name = $repo['name'];
|
||||
|
||||
echo "Updating default branch for repository #{$id} '{$name}' from ".
|
||||
"'{$old}' to '{$new}' to remove the explicit remote.\n";
|
||||
echo pht(
|
||||
"Updating default branch for repository #%d '%s' from ".
|
||||
"'%s' to '%s' to remove the explicit remote.\n",
|
||||
$id,
|
||||
$name,
|
||||
$old,
|
||||
$new);
|
||||
queryfx(
|
||||
$conn_w,
|
||||
'UPDATE %T SET details = %s WHERE id = %d',
|
||||
|
@ -41,4 +46,4 @@ foreach ($repos as $repo) {
|
|||
}
|
||||
|
||||
$table->saveTransaction();
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
echo "Checking for rules that can be converted to 'personal'. ";
|
||||
echo pht("Checking for rules that can be converted to 'personal'.")."\n";
|
||||
$table = new HeraldRule();
|
||||
$table->openTransaction();
|
||||
$table->beginReadLocking();
|
||||
|
@ -41,11 +41,11 @@ foreach ($rules as $rule) {
|
|||
$rule->getRuleType(),
|
||||
$rule->getID());
|
||||
|
||||
echo "Setting rule '".$rule->getName()."' to personal. ";
|
||||
echo pht("Setting rule '%s' to personal.", $rule->getName())."\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$table->endReadLocking();
|
||||
$table->saveTransaction();
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
echo "Cleaning up old Herald rule applied rows...\n";
|
||||
echo pht('Cleaning up old Herald rule applied rows...')."\n";
|
||||
$table = new HeraldRule();
|
||||
$table->openTransaction();
|
||||
$table->beginReadLocking();
|
||||
|
@ -24,7 +24,7 @@ if ($rules) {
|
|||
mpull($rules, 'getID'));
|
||||
}
|
||||
|
||||
echo 'This may take a moment';
|
||||
echo pht('This may take a moment')."\n";
|
||||
do {
|
||||
queryfx(
|
||||
$conn_w,
|
||||
|
@ -36,4 +36,4 @@ do {
|
|||
|
||||
$table->endReadLocking();
|
||||
$table->saveTransaction();
|
||||
echo "\nDone.\n";
|
||||
echo "\n".pht('Done.')."\n";
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
echo "Updating old commit authors...\n";
|
||||
echo pht('Updating old commit authors...')."\n";
|
||||
$table = new PhabricatorRepositoryCommit();
|
||||
$table->openTransaction();
|
||||
|
||||
|
@ -31,10 +31,10 @@ foreach ($commits as $commit) {
|
|||
}
|
||||
|
||||
$table->saveTransaction();
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
||||
|
||||
echo "Updating old commit mailKeys...\n";
|
||||
echo pht('Updating old commit %s...', 'mailKeys')."\n";
|
||||
$table->openTransaction();
|
||||
|
||||
$commits = queryfx_all(
|
||||
|
@ -55,4 +55,4 @@ foreach ($commits as $commit) {
|
|||
}
|
||||
|
||||
$table->saveTransaction();
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
|
@ -5,7 +5,7 @@ $table->openTransaction();
|
|||
$table->beginReadLocking();
|
||||
$conn_w = $table->establishConnection('w');
|
||||
|
||||
echo 'Migrating revisions';
|
||||
echo pht('Migrating revisions')."\n";
|
||||
do {
|
||||
$revisions = $table->loadAllWhere('branchName IS NULL LIMIT 1000');
|
||||
|
||||
|
@ -32,4 +32,4 @@ do {
|
|||
|
||||
$table->endReadLocking();
|
||||
$table->saveTransaction();
|
||||
echo "\nDone.\n";
|
||||
echo "\n".pht('Done.')."\n";
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
echo 'Giving image macros PHIDs';
|
||||
echo pht('Giving image macros PHIDs');
|
||||
$table = new PhabricatorFileImageMacro();
|
||||
$table->openTransaction();
|
||||
|
||||
|
@ -20,4 +20,4 @@ foreach (new LiskMigrationIterator($table) as $macro) {
|
|||
}
|
||||
|
||||
$table->saveTransaction();
|
||||
echo "\nDone.\n";
|
||||
echo "\n".pht('Done.')."\n";
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
echo "Migrating Differential unsubscribed users to edges...\n";
|
||||
echo pht('Migrating Differential unsubscribed users to edges...')."\n";
|
||||
$table = new DifferentialRevision();
|
||||
$table->openTransaction();
|
||||
|
||||
|
@ -29,4 +29,4 @@ foreach ($revs as $rev) {
|
|||
}
|
||||
|
||||
$table->saveTransaction();
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
echo "Updating channel IDs of previous chatlog events...\n";
|
||||
echo pht('Updating channel IDs of previous chatlog events...')."\n";
|
||||
$event_table = new PhabricatorChatLogEvent();
|
||||
$channel_table = new PhabricatorChatLogChannel();
|
||||
|
||||
|
@ -61,4 +61,4 @@ $channel_table->endReadLocking();
|
|||
$event_table->saveTransaction();
|
||||
$channel_table->saveTransaction();
|
||||
|
||||
echo "\nDone.\n";
|
||||
echo "\n".pht('Done.')."\n";
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
<?php
|
||||
|
||||
echo "Backfilling commit summaries...\n";
|
||||
echo pht('Backfilling commit summaries...')."\n";
|
||||
|
||||
$table = new PhabricatorRepositoryCommit();
|
||||
$conn_w = $table->establishConnection('w');
|
||||
$commits = new LiskMigrationIterator($table);
|
||||
foreach ($commits as $commit) {
|
||||
echo 'Filling Commit #'.$commit->getID()."\n";
|
||||
echo pht('Filling Commit #%d', $commit->getID())."\n";
|
||||
|
||||
if (strlen($commit->getSummary())) {
|
||||
continue;
|
||||
|
@ -28,4 +28,4 @@ foreach ($commits as $commit) {
|
|||
$commit->getID());
|
||||
}
|
||||
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?php
|
||||
|
||||
echo "Migrating data from conpherence transactions to conpherence 'cache'...\n";
|
||||
echo pht(
|
||||
"Migrating data from conpherence transactions to conpherence 'cache'...\n");
|
||||
|
||||
$table = new ConpherenceThread();
|
||||
$table->openTransaction();
|
||||
|
@ -10,7 +11,7 @@ $participant_table = new ConpherenceParticipant();
|
|||
|
||||
$conpherences = new LiskMigrationIterator($table);
|
||||
foreach ($conpherences as $conpherence) {
|
||||
echo 'Migrating conpherence #'.$conpherence->getID()."\n";
|
||||
echo pht('Migrating conpherence #%d', $conpherence->getID())."\n";
|
||||
|
||||
$participants = id(new ConpherenceParticipant())
|
||||
->loadAllWhere('conpherencePHID = %s', $conpherence->getPHID());
|
||||
|
@ -61,4 +62,4 @@ foreach ($conpherences as $conpherence) {
|
|||
}
|
||||
|
||||
$table->saveTransaction();
|
||||
echo "\nDone.\n";
|
||||
echo "\n".pht('Done.')."\n";
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
echo "Migrating differential.revisionPHID to edges...\n";
|
||||
echo pht('Migrating %s to edges...', 'differential.revisionPHID')."\n";
|
||||
$commit_table = new PhabricatorRepositoryCommit();
|
||||
$data_table = new PhabricatorRepositoryCommitData();
|
||||
$editor = new PhabricatorEdgeEditor();
|
||||
|
@ -30,4 +30,4 @@ foreach (new LiskMigrationIterator($commit_table) as $commit) {
|
|||
|
||||
echo '.';
|
||||
$editor->save();
|
||||
echo "\nDone.\n";
|
||||
echo "\n".pht('Done.')."\n";
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
echo 'Giving countdowns PHIDs';
|
||||
echo pht('Giving countdowns PHIDs');
|
||||
$table = new PhabricatorCountdown();
|
||||
$table->openTransaction();
|
||||
|
||||
|
@ -20,4 +20,4 @@ foreach (new LiskMigrationIterator($table) as $countdown) {
|
|||
}
|
||||
|
||||
$table->saveTransaction();
|
||||
echo "\nDone.\n";
|
||||
echo "\n".pht('Done.')."\n";
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
echo "Populating Releeph requests with mail keys...\n";
|
||||
echo pht('Populating Releeph requests with mail keys...')."\n";
|
||||
|
||||
$table = new ReleephRequest();
|
||||
$table->openTransaction();
|
||||
|
@ -17,11 +17,11 @@ foreach (new LiskMigrationIterator($table) as $rq) {
|
|||
$rq->getTableName(),
|
||||
Filesystem::readRandomCharacters(20),
|
||||
$id);
|
||||
echo "Generated Key\n";
|
||||
echo pht('Generated Key')."\n";
|
||||
} else {
|
||||
echo "-\n";
|
||||
}
|
||||
}
|
||||
|
||||
$table->saveTransaction();
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
<?php
|
||||
|
||||
echo "Migrating macro authors...\n";
|
||||
echo pht('Migrating macro authors...')."\n";
|
||||
foreach (new LiskMigrationIterator(new PhabricatorFileImageMacro()) as $macro) {
|
||||
echo "Macro #".$macro->getID()."\n";
|
||||
echo pht('Macro #%d', $macro->getID())."\n";
|
||||
|
||||
if ($macro->getAuthorPHID()) {
|
||||
// Already have an author; skip it.
|
||||
|
@ -36,4 +36,4 @@ foreach (new LiskMigrationIterator(new PhabricatorFileImageMacro()) as $macro) {
|
|||
$macro->getID());
|
||||
}
|
||||
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
|
@ -9,7 +9,7 @@ $conn_w = $table->establishConnection('w');
|
|||
|
||||
$xaccount = new PhabricatorExternalAccount();
|
||||
|
||||
echo "Migrating OAuth to ExternalAccount...\n";
|
||||
echo pht('Migrating OAuth to %s...', 'ExternalAccount')."\n";
|
||||
|
||||
$domain_map = array(
|
||||
'disqus' => 'disqus.com',
|
||||
|
@ -31,18 +31,18 @@ $rows = queryfx_all(
|
|||
$conn_w,
|
||||
'SELECT * FROM user_oauthinfo');
|
||||
foreach ($rows as $row) {
|
||||
echo "Migrating row ID #".$row['id'].".\n";
|
||||
echo pht('Migrating row ID #%d.', $row['id'])."\n";
|
||||
$user = id(new PhabricatorUser())->loadOneWhere(
|
||||
'id = %d',
|
||||
$row['userID']);
|
||||
if (!$user) {
|
||||
echo "Bad user ID!\n";
|
||||
echo pht('Bad user ID!')."\n";
|
||||
continue;
|
||||
}
|
||||
|
||||
$domain = idx($domain_map, $row['oauthProvider']);
|
||||
if (empty($domain)) {
|
||||
echo "Unknown OAuth provider!\n";
|
||||
echo pht('Unknown OAuth provider!')."\n";
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -63,4 +63,4 @@ foreach ($rows as $row) {
|
|||
}
|
||||
}
|
||||
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
|
@ -9,16 +9,16 @@ $conn_w = $table->establishConnection('w');
|
|||
|
||||
$xaccount = new PhabricatorExternalAccount();
|
||||
|
||||
echo "Migrating LDAP to ExternalAccount...\n";
|
||||
echo pht('Migrating LDAP to %s...', 'ExternalAccount')."\n";
|
||||
|
||||
$rows = queryfx_all($conn_w, 'SELECT * FROM %T', $table_name);
|
||||
foreach ($rows as $row) {
|
||||
echo "Migrating row ID #".$row['id'].".\n";
|
||||
echo pht('Migrating row ID #%d.', $row['id'])."\n";
|
||||
$user = id(new PhabricatorUser())->loadOneWhere(
|
||||
'id = %d',
|
||||
$row['userID']);
|
||||
if (!$user) {
|
||||
echo "Bad user ID!\n";
|
||||
echo pht('Bad user ID!')."\n";
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -38,4 +38,4 @@ foreach ($rows as $row) {
|
|||
}
|
||||
}
|
||||
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
|
@ -60,11 +60,11 @@ foreach ($config_map as $provider_class => $spec) {
|
|||
$enabled_default);
|
||||
|
||||
if (!$enabled) {
|
||||
echo pht("Skipping %s (not enabled).\n", $provider_class);
|
||||
echo pht('Skipping %s (not enabled).', $provider_class)."\n";
|
||||
// This provider was not previously enabled, so we can skip migrating it.
|
||||
continue;
|
||||
} else {
|
||||
echo pht("Migrating %s...\n", $provider_class);
|
||||
echo pht('Migrating %s...', $provider_class)."\n";
|
||||
}
|
||||
|
||||
$registration_key = idx($spec, 'registration');
|
||||
|
@ -161,4 +161,4 @@ foreach ($config_map as $provider_class => $spec) {
|
|||
$config->save();
|
||||
}
|
||||
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
<?php
|
||||
|
||||
echo 'Populating Legalpad Documents with ',
|
||||
"titles, recentContributorPHIDs, and contributorCounts...\n";
|
||||
echo pht(
|
||||
"Populating Legalpad Documents with titles, %s, and %s...\n",
|
||||
'recentContributorPHIDs',
|
||||
'contributorCounts');
|
||||
$table = new LegalpadDocument();
|
||||
$table->openTransaction();
|
||||
|
||||
|
@ -9,14 +11,14 @@ foreach (new LiskMigrationIterator($table) as $document) {
|
|||
$updated = false;
|
||||
$id = $document->getID();
|
||||
|
||||
echo "Document {$id}: ";
|
||||
echo pht('Document %d: ', $id);
|
||||
if (!$document->getTitle()) {
|
||||
$document_body = id(new LegalpadDocumentBody())
|
||||
->loadOneWhere('phid = %s', $document->getDocumentBodyPHID());
|
||||
$title = $document_body->getTitle();
|
||||
$document->setTitle($title);
|
||||
$updated = true;
|
||||
echo "Added title: $title\n";
|
||||
echo pht('Added title: %s', $title)."\n";
|
||||
} else {
|
||||
echo "-\n";
|
||||
}
|
||||
|
@ -29,9 +31,9 @@ foreach (new LiskMigrationIterator($table) as $document) {
|
|||
$document->getPHID(),
|
||||
$type);
|
||||
$document->setRecentContributorPHIDs(array_slice($contributors, 0, 3));
|
||||
echo "Added recent contributor phids.\n";
|
||||
echo pht('Added recent contributor PHIDs.')."\n";
|
||||
$document->setContributorCount(count($contributors));
|
||||
echo "Added contributor count.\n";
|
||||
echo pht('Added contributor count.')."\n";
|
||||
}
|
||||
|
||||
if (!$updated) {
|
||||
|
@ -43,4 +45,4 @@ foreach (new LiskMigrationIterator($table) as $document) {
|
|||
}
|
||||
|
||||
$table->saveTransaction();
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
echo 'Giving pholio images PHIDs';
|
||||
echo pht('Giving Pholio images PHIDs');
|
||||
$table = new PholioImage();
|
||||
$table->openTransaction();
|
||||
|
||||
|
@ -20,4 +20,4 @@ foreach (new LiskMigrationIterator($table) as $image) {
|
|||
}
|
||||
|
||||
$table->saveTransaction();
|
||||
echo "\nDone.\n";
|
||||
echo "\n".pht('Done.')."\n";
|
||||
|
|
|
@ -3,18 +3,18 @@
|
|||
$table = new PhabricatorUser();
|
||||
$conn_w = $table->establishConnection('w');
|
||||
|
||||
echo "Trimming trailing whitespace from user real names...\n";
|
||||
echo pht('Trimming trailing whitespace from user real names...')."\n";
|
||||
foreach (new LiskMigrationIterator($table) as $user) {
|
||||
$id = $user->getID();
|
||||
$real = $user->getRealName();
|
||||
$trim = rtrim($real);
|
||||
|
||||
if ($trim == $real) {
|
||||
echo "User {$id} is already trim.\n";
|
||||
echo pht('User %d is already trim.', $id)."\n";
|
||||
continue;
|
||||
}
|
||||
|
||||
echo "Trimming user {$id} from '{$real}' to '{$trim}'.\n";
|
||||
echo pht("Trimming user %d from '%s' to '%s'.", $id, $real, $trim)."\n";
|
||||
qsprintf(
|
||||
$conn_w,
|
||||
'UPDATE %T SET realName = %s WHERE id = %d',
|
||||
|
@ -23,4 +23,4 @@ foreach (new LiskMigrationIterator($table) as $user) {
|
|||
$id);
|
||||
}
|
||||
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
echo "Moving Slowvote comments to transactions...\n";
|
||||
echo pht('Moving Slowvote comments to transactions...')."\n";
|
||||
|
||||
$viewer = PhabricatorUser::getOmnipotentUser();
|
||||
|
||||
|
@ -20,14 +20,14 @@ foreach ($comments as $comment) {
|
|||
$date_created = $comment['dateCreated'];
|
||||
$date_modified = $comment['dateModified'];
|
||||
|
||||
echo "Migrating comment {$id}.\n";
|
||||
echo pht('Migrating comment %d.', $id)."\n";
|
||||
|
||||
$poll = id(new PhabricatorSlowvoteQuery())
|
||||
->setViewer($viewer)
|
||||
->withIDs(array($poll_id))
|
||||
->executeOne();
|
||||
if (!$poll) {
|
||||
echo "No poll.\n";
|
||||
echo pht('No poll.')."\n";
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -36,7 +36,7 @@ foreach ($comments as $comment) {
|
|||
->withPHIDs(array($author_phid))
|
||||
->executeOne();
|
||||
if (!$user) {
|
||||
echo "No user.\n";
|
||||
echo pht('No user.')."\n";
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -98,4 +98,4 @@ foreach ($comments as $comment) {
|
|||
|
||||
$conn_w->saveTransaction();
|
||||
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
|
@ -1,18 +1,17 @@
|
|||
<?php
|
||||
|
||||
echo "Archiving projects with no members...\n";
|
||||
echo pht('Archiving projects with no members...')."\n";
|
||||
|
||||
$table = new PhabricatorProject();
|
||||
$table->openTransaction();
|
||||
|
||||
foreach (new LiskMigrationIterator($table) as $project) {
|
||||
|
||||
$members = PhabricatorEdgeQuery::loadDestinationPHIDs(
|
||||
$project->getPHID(),
|
||||
PhabricatorProjectProjectHasMemberEdgeType::EDGECONST);
|
||||
|
||||
if (count($members)) {
|
||||
echo sprintf(
|
||||
echo pht(
|
||||
'Project "%s" has %d members; skipping.',
|
||||
$project->getName(),
|
||||
count($members)), "\n";
|
||||
|
@ -20,13 +19,13 @@ foreach (new LiskMigrationIterator($table) as $project) {
|
|||
}
|
||||
|
||||
if ($project->getStatus() == PhabricatorProjectStatus::STATUS_ARCHIVED) {
|
||||
echo sprintf(
|
||||
echo pht(
|
||||
'Project "%s" already archived; skipping.',
|
||||
$project->getName()), "\n";
|
||||
continue;
|
||||
}
|
||||
|
||||
echo sprintf('Archiving project "%s"...', $project->getName()), "\n";
|
||||
echo pht('Archiving project "%s"...', $project->getName())."\n";
|
||||
queryfx(
|
||||
$table->establishConnection('w'),
|
||||
'UPDATE %T SET status = %s WHERE id = %d',
|
||||
|
@ -36,4 +35,4 @@ foreach (new LiskMigrationIterator($table) as $project) {
|
|||
}
|
||||
|
||||
$table->saveTransaction();
|
||||
echo "\nDone.\n";
|
||||
echo "\n".pht('Done.')."\n";
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
$map = array();
|
||||
|
||||
echo "Merging duplicate answers by authors...\n";
|
||||
echo pht('Merging duplicate answers by authors...')."\n";
|
||||
|
||||
$atable = new PonderAnswer();
|
||||
$conn_w = $atable->establishConnection('w');
|
||||
|
@ -14,14 +14,14 @@ foreach ($answers as $answer) {
|
|||
$qid = $answer->getQuestionID();
|
||||
$author_phid = $answer->getAuthorPHID();
|
||||
|
||||
echo "Processing answer ID #{$aid}...\n";
|
||||
echo pht('Processing answer ID #%d...', $aid)."\n";
|
||||
|
||||
if (empty($map[$qid][$author_phid])) {
|
||||
echo "Answer is unique.\n";
|
||||
echo pht('Answer is unique.')."\n";
|
||||
$map[$qid][$author_phid] = $answer;
|
||||
continue;
|
||||
} else {
|
||||
echo "Merging answer.\n";
|
||||
echo pht('Merging answer.')."\n";
|
||||
$target = $map[$qid][$author_phid];
|
||||
queryfx(
|
||||
$conn_w,
|
||||
|
@ -55,4 +55,4 @@ foreach ($answers as $answer) {
|
|||
}
|
||||
|
||||
$conn_w->saveTransaction();
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
|
@ -6,13 +6,13 @@ $atable = new PonderAnswerTransaction();
|
|||
$conn_w = $qtable->establishConnection('w');
|
||||
$conn_w->openTransaction();
|
||||
|
||||
echo "Migrating Ponder comments to ApplicationTransactions...\n";
|
||||
echo pht('Migrating Ponder comments to %s...', 'ApplicationTransactions')."\n";
|
||||
|
||||
$rows = new LiskRawMigrationIterator($conn_w, 'ponder_comment');
|
||||
foreach ($rows as $row) {
|
||||
|
||||
$id = $row['id'];
|
||||
echo "Migrating {$id}...\n";
|
||||
echo pht('Migrating %d...', $id)."\n";
|
||||
|
||||
$type = phid_get_type($row['targetPHID']);
|
||||
switch ($type) {
|
||||
|
@ -83,4 +83,4 @@ foreach ($rows as $row) {
|
|||
|
||||
$conn_w->saveTransaction();
|
||||
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
|
@ -6,13 +6,13 @@ $x_table = new PhabricatorPasteTransaction();
|
|||
$conn_w = $table->establishConnection('w');
|
||||
$conn_w->openTransaction();
|
||||
|
||||
echo "Adding transactions for existing paste objects...\n";
|
||||
echo pht('Adding transactions for existing paste objects...')."\n";
|
||||
|
||||
$rows = new LiskRawMigrationIterator($conn_w, 'pastebin_paste');
|
||||
foreach ($rows as $row) {
|
||||
|
||||
$id = $row['id'];
|
||||
echo "Adding transactions for paste id {$id}...\n";
|
||||
echo pht('Adding transactions for paste id %d...', $id)."\n";
|
||||
|
||||
$xaction_phid = PhabricatorPHID::generateNewPHID(
|
||||
PhabricatorApplicationTransactionTransactionPHIDType::TYPECONST);
|
||||
|
@ -45,4 +45,4 @@ foreach ($rows as $row) {
|
|||
|
||||
$conn_w->saveTransaction();
|
||||
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
|
@ -3,11 +3,11 @@
|
|||
$table = new HeraldRule();
|
||||
$conn_w = $table->establishConnection('w');
|
||||
|
||||
echo "Assigning PHIDs to Herald Rules...\n";
|
||||
echo pht('Assigning PHIDs to Herald Rules...')."\n";
|
||||
|
||||
foreach (new LiskMigrationIterator(new HeraldRule()) as $rule) {
|
||||
$id = $rule->getID();
|
||||
echo "Rule {$id}.\n";
|
||||
echo pht('Rule %d.', $id)."\n";
|
||||
|
||||
if ($rule->getPHID()) {
|
||||
continue;
|
||||
|
@ -21,4 +21,4 @@ foreach (new LiskMigrationIterator(new HeraldRule()) as $rule) {
|
|||
$rule->getID());
|
||||
}
|
||||
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
echo "Populating pastes with mail keys...\n";
|
||||
echo pht('Populating pastes with mail keys...')."\n";
|
||||
|
||||
$table = new PhabricatorPaste();
|
||||
$table->openTransaction();
|
||||
|
@ -17,11 +17,11 @@ foreach (new LiskMigrationIterator($table) as $paste) {
|
|||
$paste->getTableName(),
|
||||
Filesystem::readRandomCharacters(20),
|
||||
$id);
|
||||
echo "Generated Key\n";
|
||||
echo pht('Generated Key')."\n";
|
||||
} else {
|
||||
echo "-\n";
|
||||
}
|
||||
}
|
||||
|
||||
$table->saveTransaction();
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
echo "Populating Phabricator files with mail keys xactions...\n";
|
||||
echo pht('Populating Phabricator files with mail keys xactions...')."\n";
|
||||
|
||||
$table = new PhabricatorFile();
|
||||
$table_name = $table->getTableName();
|
||||
|
@ -35,4 +35,4 @@ if ($sql) {
|
|||
}
|
||||
|
||||
$table->saveTransaction();
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
|
@ -5,12 +5,12 @@ $table_name = id(new ManiphestCustomFieldStorage())->getTableName();
|
|||
|
||||
$rows = new LiskRawMigrationIterator($conn_w, 'maniphest_taskauxiliarystorage');
|
||||
|
||||
echo "Migrating custom storage for Maniphest fields...\n";
|
||||
echo pht('Migrating custom storage for Maniphest fields...')."\n";
|
||||
foreach ($rows as $row) {
|
||||
$phid = $row['taskPHID'];
|
||||
$name = $row['name'];
|
||||
|
||||
echo "Migrating {$phid} / {$name}...\n";
|
||||
echo pht('Migrating %s / %s...', $phid, $name)."\n";
|
||||
|
||||
queryfx(
|
||||
$conn_w,
|
||||
|
@ -22,4 +22,4 @@ foreach ($rows as $row) {
|
|||
$row['value']);
|
||||
}
|
||||
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
|
@ -1,18 +1,18 @@
|
|||
<?php
|
||||
|
||||
echo "Migrating Maniphest custom field configuration...\n";
|
||||
echo pht('Migrating Maniphest custom field configuration...')."\n";
|
||||
|
||||
$old_key = 'maniphest.custom-fields';
|
||||
$new_key = 'maniphest.custom-field-definitions';
|
||||
|
||||
if (PhabricatorEnv::getEnvConfig($new_key)) {
|
||||
echo "Skipping migration, new data is already set.\n";
|
||||
echo pht('Skipping migration, new data is already set.')."\n";
|
||||
return;
|
||||
}
|
||||
|
||||
$old = PhabricatorEnv::getEnvConfigIfExists($old_key);
|
||||
if (!$old) {
|
||||
echo "Skipping migration, old data does not exist.\n";
|
||||
echo pht('Skipping migration, old data does not exist.')."\n";
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -63,4 +63,4 @@ PhabricatorConfigEntry::loadConfigEntry($new_key)
|
|||
->setValue($new)
|
||||
->save();
|
||||
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
|
@ -14,7 +14,7 @@ foreach ($rows as $row) {
|
|||
$row_id = $row['id'];
|
||||
$task_id = $row['taskID'];
|
||||
|
||||
echo "Migrating row {$row_id} (T{$task_id})...\n";
|
||||
echo pht('Migrating row %d (%s)...', $row_id, "T{$task_id}")."\n";
|
||||
|
||||
$task_row = queryfx_one(
|
||||
$conn_w,
|
||||
|
@ -22,7 +22,7 @@ foreach ($rows as $row) {
|
|||
$task_table->getTableName(),
|
||||
$task_id);
|
||||
if (!$task_row) {
|
||||
echo "Skipping, no such task.\n";
|
||||
echo pht('Skipping, no such task.')."\n";
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -145,4 +145,4 @@ foreach ($rows as $row) {
|
|||
}
|
||||
|
||||
$conn_w->saveTransaction();
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
|
@ -7,7 +7,7 @@ $conn_w->openTransaction();
|
|||
$src_table = 'differential_inlinecomment';
|
||||
$dst_table = 'differential_transaction_comment';
|
||||
|
||||
echo "Migrating Differential inline comments to new format...\n";
|
||||
echo pht('Migrating Differential inline comments to new format...')."\n";
|
||||
|
||||
$content_source = PhabricatorContentSource::newForSource(
|
||||
PhabricatorContentSource::SOURCE_LEGACY,
|
||||
|
@ -19,7 +19,7 @@ foreach ($rows as $row) {
|
|||
|
||||
$revision_id = $row['revisionID'];
|
||||
|
||||
echo "Migrating inline #{$id} (D{$revision_id})...\n";
|
||||
echo pht('Migrating inline #%d (%s)...', $id, "D{$revision_id}")."\n";
|
||||
|
||||
$revision_row = queryfx_one(
|
||||
$conn_w,
|
||||
|
@ -87,4 +87,4 @@ foreach ($rows as $row) {
|
|||
}
|
||||
|
||||
$conn_w->saveTransaction();
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
|
@ -10,7 +10,7 @@ foreach (new LiskMigrationIterator($table) as $revision) {
|
|||
$revision_id = $revision->getID();
|
||||
$revision_phid = $revision->getPHID();
|
||||
|
||||
echo "Migrating reviewers for D{$revision_id}...\n";
|
||||
echo pht('Migrating reviewers for %s...', "D{$revision_id}")."\n";
|
||||
|
||||
$reviewer_phids = queryfx_all(
|
||||
$conn_w,
|
||||
|
@ -48,4 +48,4 @@ foreach (new LiskMigrationIterator($table) as $revision) {
|
|||
$editor->save();
|
||||
}
|
||||
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
|
@ -7,7 +7,7 @@ $conn_w->openTransaction();
|
|||
$src_table = 'project_legacytransaction';
|
||||
$dst_table = 'project_transaction';
|
||||
|
||||
echo "Migrating Project transactions to new format...\n";
|
||||
echo pht('Migrating Project transactions to new format...')."\n";
|
||||
|
||||
$content_source = PhabricatorContentSource::newForSource(
|
||||
PhabricatorContentSource::SOURCE_LEGACY,
|
||||
|
@ -19,7 +19,7 @@ foreach ($rows as $row) {
|
|||
|
||||
$project_id = $row['projectID'];
|
||||
|
||||
echo "Migrating transaction #{$id} (Project {$project_id})...\n";
|
||||
echo pht('Migrating transaction #%d (Project %d)...', $id, $project_id)."\n";
|
||||
|
||||
$project_row = queryfx_one(
|
||||
$conn_w,
|
||||
|
@ -89,4 +89,4 @@ foreach ($rows as $row) {
|
|||
}
|
||||
|
||||
$conn_w->saveTransaction();
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
|
@ -13,7 +13,7 @@ foreach ($chunk_iter as $chunk) {
|
|||
|
||||
foreach ($chunk as $diff) {
|
||||
$id = $diff->getID();
|
||||
echo "Migrating diff ID {$id}...\n";
|
||||
echo pht('Migrating diff ID %d...', $id)."\n";
|
||||
|
||||
$phid = $diff->getPHID();
|
||||
if (strlen($phid)) {
|
||||
|
@ -44,4 +44,4 @@ foreach ($chunk_iter as $chunk) {
|
|||
}
|
||||
}
|
||||
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
|
@ -5,7 +5,7 @@ $conn_w = $table->establishConnection('w');
|
|||
|
||||
foreach (new LiskMigrationIterator($table) as $user) {
|
||||
$username = $user->getUsername();
|
||||
echo "Migrating {$username}...\n";
|
||||
echo pht('Migrating %s...', $username)."\n";
|
||||
if ($user->getIsEmailVerified()) {
|
||||
// Email already verified.
|
||||
continue;
|
||||
|
@ -30,4 +30,4 @@ foreach (new LiskMigrationIterator($table) as $user) {
|
|||
$user->getID());
|
||||
}
|
||||
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
|
@ -9,7 +9,7 @@ $user_conn = $user_table->establishConnection('r');
|
|||
foreach (new LiskMigrationIterator($table) as $task) {
|
||||
$id = $task->getID();
|
||||
|
||||
echo "Checking task T{$id}...\n";
|
||||
echo pht('Checking task %s...', "T{$id}")."\n";
|
||||
$owner_phid = $task->getOwnerPHID();
|
||||
|
||||
if (!$owner_phid && !$task->getOwnerOrdering()) {
|
||||
|
@ -39,4 +39,4 @@ foreach (new LiskMigrationIterator($table) as $task) {
|
|||
}
|
||||
}
|
||||
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
|
@ -7,16 +7,16 @@ $viewer = PhabricatorUser::getOmnipotentUser();
|
|||
$map = array();
|
||||
foreach (new LiskMigrationIterator($table) as $repository) {
|
||||
$callsign = $repository->getCallsign();
|
||||
echo "Examining repository {$callsign}...\n";
|
||||
echo pht('Examining repository %s...', $callsign)."\n";
|
||||
|
||||
if ($repository->getCredentialPHID()) {
|
||||
echo "...already has a Credential.\n";
|
||||
echo pht('...already has a Credential.')."\n";
|
||||
continue;
|
||||
}
|
||||
|
||||
$raw_uri = $repository->getRemoteURI();
|
||||
if (!$raw_uri) {
|
||||
echo "...no remote URI.\n";
|
||||
echo pht('...no remote URI.')."\n";
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -50,12 +50,12 @@ foreach (new LiskMigrationIterator($table) as $repository) {
|
|||
}
|
||||
|
||||
if (!$username || !$secret) {
|
||||
echo "...no credentials set.\n";
|
||||
echo pht('...no credentials set.')."\n";
|
||||
continue;
|
||||
}
|
||||
|
||||
$map[$type][$username][$secret][] = $repository;
|
||||
echo "...will migrate.\n";
|
||||
echo pht('...will migrate.')."\n";
|
||||
}
|
||||
|
||||
$passphrase = new PassphraseSecret();
|
||||
|
@ -76,7 +76,7 @@ foreach ($map as $credential_type => $credential_usernames) {
|
|||
->setMaximumGlyphs(128)
|
||||
->truncateString($signs));
|
||||
|
||||
echo "Creating: {$name}...\n";
|
||||
echo pht('Creating: %s...', $name)."\n";
|
||||
|
||||
$secret = id(new PassphraseSecret())
|
||||
->setSecretData($secret_plaintext)
|
||||
|
@ -136,4 +136,4 @@ foreach ($map as $credential_type => $credential_usernames) {
|
|||
$table->saveTransaction();
|
||||
$passphrase->saveTransaction();
|
||||
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
|
@ -9,7 +9,7 @@ $viewer = PhabricatorUser::getOmnipotentUser();
|
|||
|
||||
foreach (new LiskMigrationIterator($table) as $plan) {
|
||||
$planname = $plan->getName();
|
||||
echo "Migrating steps in {$planname}...\n";
|
||||
echo pht('Migrating steps in %s...', $planname)."\n";
|
||||
|
||||
$rows = queryfx_all(
|
||||
$conn_w,
|
||||
|
@ -23,10 +23,10 @@ foreach (new LiskMigrationIterator($table) as $plan) {
|
|||
$id = $row['id'];
|
||||
$existing = $row['sequence'];
|
||||
if ($existing != 0) {
|
||||
echo " - {$id} (already migrated)...\n";
|
||||
echo " - ".pht('%d (already migrated)...', $id)."\n";
|
||||
continue;
|
||||
}
|
||||
echo " - {$id} to position {$sequence}...\n";
|
||||
echo " - ".pht('%d to position %s...', $id, $sequence)."\n";
|
||||
queryfx(
|
||||
$conn_w,
|
||||
'UPDATE harbormaster_buildstep '.
|
||||
|
@ -38,4 +38,4 @@ foreach (new LiskMigrationIterator($table) as $plan) {
|
|||
}
|
||||
}
|
||||
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
|
@ -3,12 +3,12 @@
|
|||
$table = new PhabricatorRepositoryPushLog();
|
||||
$conn_w = $table->establishConnection('w');
|
||||
|
||||
echo "Assigning PHIDs to push logs...\n";
|
||||
echo pht('Assigning PHIDs to push logs...')."\n";
|
||||
|
||||
$logs = new LiskMigrationIterator($table);
|
||||
foreach ($logs as $log) {
|
||||
$id = $log->getID();
|
||||
echo "Updating {$id}...\n";
|
||||
echo pht('Updating %s...', $id)."\n";
|
||||
queryfx(
|
||||
$conn_w,
|
||||
'UPDATE %T SET phid = %s WHERE id = %d',
|
||||
|
@ -17,4 +17,4 @@ foreach ($logs as $log) {
|
|||
$id);
|
||||
}
|
||||
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
echo "Migrating user emails...\n";
|
||||
echo pht('Migrating user emails...')."\n";
|
||||
|
||||
$table = new PhabricatorUser();
|
||||
$table->openTransaction();
|
||||
|
@ -19,7 +19,7 @@ foreach ($emails as $phid => $email) {
|
|||
// NOTE: Grandfather all existing email in as primary / verified. We generate
|
||||
// verification codes because they are used for password resets, etc.
|
||||
|
||||
echo "Migrating '{$phid}'...\n";
|
||||
echo pht("Migrating '%s'...", $phid)."\n";
|
||||
queryfx(
|
||||
$conn,
|
||||
'INSERT INTO %T (userPHID, address, verificationCode, isVerified, isPrimary)
|
||||
|
@ -31,4 +31,4 @@ foreach ($emails as $phid => $email) {
|
|||
}
|
||||
|
||||
$table->saveTransaction();
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
<?php
|
||||
|
||||
echo "Populating Legalpad Documents with mail keys...\n";
|
||||
echo pht('Populating Legalpad Documents with mail keys...')."\n";
|
||||
$table = new LegalpadDocument();
|
||||
$table->openTransaction();
|
||||
|
||||
foreach (new LiskMigrationIterator($table) as $document) {
|
||||
$id = $document->getID();
|
||||
|
||||
echo "Document {$id}: ";
|
||||
echo pht('Document %s: ', $id);
|
||||
if (!$document->getMailKey()) {
|
||||
queryfx(
|
||||
$document->establishConnection('w'),
|
||||
|
@ -15,11 +15,11 @@ foreach (new LiskMigrationIterator($table) as $document) {
|
|||
$document->getTableName(),
|
||||
Filesystem::readRandomCharacters(20),
|
||||
$id);
|
||||
echo "Generated Key\n";
|
||||
echo pht('Generated Key')."\n";
|
||||
} else {
|
||||
echo "-\n";
|
||||
}
|
||||
}
|
||||
|
||||
$table->saveTransaction();
|
||||
echo "Done.\n";
|
||||
echo pht('Done.')."\n";
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue