@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Automatically build all Lisk schemata

Summary:
Ref T1191. Now that the whole database is covered, we don't need to do as much work to build expected schemata. Doing them database-by-database was helpful in converting, but is just reudndant work now.

Instead of requiring every application to build its Lisk objects, just build all Lisk objects.

I removed `harbormaster.lisk_counter` because it is unused.

It would be nice to autogenerate edge schemata, too, but that's a little trickier.

Test Plan: Database setup issues are all green.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley, hach-que

Maniphest Tasks: T1191

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

+50 -555
+1
resources/sql/autopatches/20141002.schema.01.liskcounter.sql
··· 1 + DROP TABLE {$NAMESPACE}_harbormaster.lisk_counter;
+2 -52
src/__phutil_library_map__.php
··· 549 549 'DivinerPublisher' => 'applications/diviner/publisher/DivinerPublisher.php', 550 550 'DivinerRenderer' => 'applications/diviner/renderer/DivinerRenderer.php', 551 551 'DivinerReturnTableView' => 'applications/diviner/view/DivinerReturnTableView.php', 552 - 'DivinerSchemaSpec' => 'applications/diviner/storage/DivinerSchemaSpec.php', 553 552 'DivinerSectionView' => 'applications/diviner/view/DivinerSectionView.php', 554 553 'DivinerStaticPublisher' => 'applications/diviner/publisher/DivinerStaticPublisher.php', 555 554 'DivinerSymbolRemarkupRule' => 'applications/diviner/markup/DivinerSymbolRemarkupRule.php', ··· 638 637 'DrydockResourceViewController' => 'applications/drydock/controller/DrydockResourceViewController.php', 639 638 'DrydockSFTPFilesystemInterface' => 'applications/drydock/interface/filesystem/DrydockSFTPFilesystemInterface.php', 640 639 'DrydockSSHCommandInterface' => 'applications/drydock/interface/command/DrydockSSHCommandInterface.php', 641 - 'DrydockSchemaSpec' => 'applications/drydock/storage/DrydockSchemaSpec.php', 642 640 'DrydockWebrootInterface' => 'applications/drydock/interface/webroot/DrydockWebrootInterface.php', 643 641 'DrydockWorkingCopyBlueprintImplementation' => 'applications/drydock/blueprint/DrydockWorkingCopyBlueprintImplementation.php', 644 642 'FeedConduitAPIMethod' => 'applications/feed/conduit/FeedConduitAPIMethod.php', ··· 1200 1198 'PhabricatorAuditManagementWorkflow' => 'applications/audit/management/PhabricatorAuditManagementWorkflow.php', 1201 1199 'PhabricatorAuditPreviewController' => 'applications/audit/controller/PhabricatorAuditPreviewController.php', 1202 1200 'PhabricatorAuditReplyHandler' => 'applications/audit/mail/PhabricatorAuditReplyHandler.php', 1203 - 'PhabricatorAuditSchemaSpec' => 'applications/audit/storage/PhabricatorAuditSchemaSpec.php', 1204 1201 'PhabricatorAuditStatusConstants' => 'applications/audit/constants/PhabricatorAuditStatusConstants.php', 1205 1202 'PhabricatorAuditTransaction' => 'applications/audit/storage/PhabricatorAuditTransaction.php', 1206 1203 'PhabricatorAuditTransactionComment' => 'applications/audit/storage/PhabricatorAuditTransactionComment.php', ··· 1245 1242 'PhabricatorAuthProviderConfigTransactionQuery' => 'applications/auth/query/PhabricatorAuthProviderConfigTransactionQuery.php', 1246 1243 'PhabricatorAuthRegisterController' => 'applications/auth/controller/PhabricatorAuthRegisterController.php', 1247 1244 'PhabricatorAuthRevokeTokenController' => 'applications/auth/controller/PhabricatorAuthRevokeTokenController.php', 1248 - 'PhabricatorAuthSchemaSpec' => 'applications/auth/storage/PhabricatorAuthSchemaSpec.php', 1249 1245 'PhabricatorAuthSession' => 'applications/auth/storage/PhabricatorAuthSession.php', 1250 1246 'PhabricatorAuthSessionEngine' => 'applications/auth/engine/PhabricatorAuthSessionEngine.php', 1251 1247 'PhabricatorAuthSessionGarbageCollector' => 'applications/auth/garbagecollector/PhabricatorAuthSessionGarbageCollector.php', ··· 1306 1302 'PhabricatorCalendarEventViewController' => 'applications/calendar/controller/PhabricatorCalendarEventViewController.php', 1307 1303 'PhabricatorCalendarHoliday' => 'applications/calendar/storage/PhabricatorCalendarHoliday.php', 1308 1304 'PhabricatorCalendarHolidayTestCase' => 'applications/calendar/storage/__tests__/PhabricatorCalendarHolidayTestCase.php', 1309 - 'PhabricatorCalendarSchemaSpec' => 'applications/calendar/storage/PhabricatorCalendarSchemaSpec.php', 1310 1305 'PhabricatorCalendarViewController' => 'applications/calendar/controller/PhabricatorCalendarViewController.php', 1311 1306 'PhabricatorCampfireProtocolAdapter' => 'infrastructure/daemon/bot/adapter/PhabricatorCampfireProtocolAdapter.php', 1312 1307 'PhabricatorCelerityTestCase' => '__tests__/PhabricatorCelerityTestCase.php', ··· 1323 1318 'PhabricatorChatLogEvent' => 'applications/chatlog/storage/PhabricatorChatLogEvent.php', 1324 1319 'PhabricatorChatLogEventType' => 'applications/chatlog/constants/PhabricatorChatLogEventType.php', 1325 1320 'PhabricatorChatLogQuery' => 'applications/chatlog/query/PhabricatorChatLogQuery.php', 1326 - 'PhabricatorChatLogSchemaSpec' => 'applications/chatlog/storage/PhabricatorChatLogSchemaSpec.php', 1327 1321 'PhabricatorCommitBranchesField' => 'applications/repository/customfield/PhabricatorCommitBranchesField.php', 1328 1322 'PhabricatorCommitCustomField' => 'applications/repository/customfield/PhabricatorCommitCustomField.php', 1329 1323 'PhabricatorCommitSearchEngine' => 'applications/audit/query/PhabricatorCommitSearchEngine.php', ··· 1342 1336 'PhabricatorConduitLogQuery' => 'applications/conduit/query/PhabricatorConduitLogQuery.php', 1343 1337 'PhabricatorConduitMethodCallLog' => 'applications/conduit/storage/PhabricatorConduitMethodCallLog.php', 1344 1338 'PhabricatorConduitMethodQuery' => 'applications/conduit/query/PhabricatorConduitMethodQuery.php', 1345 - 'PhabricatorConduitSchemaSpec' => 'applications/conduit/storage/PhabricatorConduitSchemaSpec.php', 1346 1339 'PhabricatorConduitSearchEngine' => 'applications/conduit/query/PhabricatorConduitSearchEngine.php', 1347 1340 'PhabricatorConduitTokenController' => 'applications/conduit/controller/PhabricatorConduitTokenController.php', 1348 1341 'PhabricatorConfigAllController' => 'applications/config/controller/PhabricatorConfigAllController.php', ··· 1350 1343 'PhabricatorConfigColumnSchema' => 'applications/config/schema/PhabricatorConfigColumnSchema.php', 1351 1344 'PhabricatorConfigConfigPHIDType' => 'applications/config/phid/PhabricatorConfigConfigPHIDType.php', 1352 1345 'PhabricatorConfigController' => 'applications/config/controller/PhabricatorConfigController.php', 1346 + 'PhabricatorConfigCoreSchemaSpec' => 'applications/config/schema/PhabricatorConfigCoreSchemaSpec.php', 1353 1347 'PhabricatorConfigDatabaseController' => 'applications/config/controller/PhabricatorConfigDatabaseController.php', 1354 1348 'PhabricatorConfigDatabaseIssueController' => 'applications/config/controller/PhabricatorConfigDatabaseIssueController.php', 1355 1349 'PhabricatorConfigDatabaseSchema' => 'applications/config/schema/PhabricatorConfigDatabaseSchema.php', ··· 1384 1378 'PhabricatorConfigSchemaQuery' => 'applications/config/schema/PhabricatorConfigSchemaQuery.php', 1385 1379 'PhabricatorConfigSchemaSpec' => 'applications/config/schema/PhabricatorConfigSchemaSpec.php', 1386 1380 'PhabricatorConfigServerSchema' => 'applications/config/schema/PhabricatorConfigServerSchema.php', 1387 - 'PhabricatorConfigSettingsSchemaSpec' => 'applications/config/storage/PhabricatorConfigSettingsSchemaSpec.php', 1388 1381 'PhabricatorConfigSource' => 'infrastructure/env/PhabricatorConfigSource.php', 1389 1382 'PhabricatorConfigStackSource' => 'infrastructure/env/PhabricatorConfigStackSource.php', 1390 1383 'PhabricatorConfigStorageSchema' => 'applications/config/schema/PhabricatorConfigStorageSchema.php', ··· 1411 1404 'PhabricatorCountdownListController' => 'applications/countdown/controller/PhabricatorCountdownListController.php', 1412 1405 'PhabricatorCountdownQuery' => 'applications/countdown/query/PhabricatorCountdownQuery.php', 1413 1406 'PhabricatorCountdownRemarkupRule' => 'applications/countdown/remarkup/PhabricatorCountdownRemarkupRule.php', 1414 - 'PhabricatorCountdownSchemaSpec' => 'applications/countdown/storage/PhabricatorCountdownSchemaSpec.php', 1415 1407 'PhabricatorCountdownSearchEngine' => 'applications/countdown/query/PhabricatorCountdownSearchEngine.php', 1416 1408 'PhabricatorCountdownView' => 'applications/countdown/view/PhabricatorCountdownView.php', 1417 1409 'PhabricatorCountdownViewController' => 'applications/countdown/controller/PhabricatorCountdownViewController.php', ··· 1457 1449 'PhabricatorDaemonManagementStopWorkflow' => 'applications/daemon/management/PhabricatorDaemonManagementStopWorkflow.php', 1458 1450 'PhabricatorDaemonManagementWorkflow' => 'applications/daemon/management/PhabricatorDaemonManagementWorkflow.php', 1459 1451 'PhabricatorDaemonReference' => 'infrastructure/daemon/control/PhabricatorDaemonReference.php', 1460 - 'PhabricatorDaemonSchemaSpec' => 'applications/daemon/storage/PhabricatorDaemonSchemaSpec.php', 1461 1452 'PhabricatorDaemonTaskGarbageCollector' => 'applications/daemon/garbagecollector/PhabricatorDaemonTaskGarbageCollector.php', 1462 1453 'PhabricatorDaemonsApplication' => 'applications/daemon/application/PhabricatorDaemonsApplication.php', 1463 1454 'PhabricatorDashboard' => 'applications/dashboard/storage/PhabricatorDashboard.php', ··· 1528 1519 'PhabricatorDoorkeeperApplication' => 'applications/doorkeeper/application/PhabricatorDoorkeeperApplication.php', 1529 1520 'PhabricatorDraft' => 'applications/draft/storage/PhabricatorDraft.php', 1530 1521 'PhabricatorDraftDAO' => 'applications/draft/storage/PhabricatorDraftDAO.php', 1531 - 'PhabricatorDraftSchemaSpec' => 'applications/draft/storage/PhabricatorDraftSchemaSpec.php', 1532 1522 'PhabricatorDrydockApplication' => 'applications/drydock/application/PhabricatorDrydockApplication.php', 1533 1523 'PhabricatorEdgeConfig' => 'infrastructure/edges/constants/PhabricatorEdgeConfig.php', 1534 1524 'PhabricatorEdgeConstants' => 'infrastructure/edges/constants/PhabricatorEdgeConstants.php', ··· 1575 1565 'PhabricatorFactManagementStatusWorkflow' => 'applications/fact/management/PhabricatorFactManagementStatusWorkflow.php', 1576 1566 'PhabricatorFactManagementWorkflow' => 'applications/fact/management/PhabricatorFactManagementWorkflow.php', 1577 1567 'PhabricatorFactRaw' => 'applications/fact/storage/PhabricatorFactRaw.php', 1578 - 'PhabricatorFactSchemaSpec' => 'applications/fact/storage/PhabricatorFactSchemaSpec.php', 1579 1568 'PhabricatorFactSimpleSpec' => 'applications/fact/spec/PhabricatorFactSimpleSpec.php', 1580 1569 'PhabricatorFactSpec' => 'applications/fact/spec/PhabricatorFactSpec.php', 1581 1570 'PhabricatorFactUpdateIterator' => 'applications/fact/extract/PhabricatorFactUpdateIterator.php', ··· 1591 1580 'PhabricatorFeedManagementWorkflow' => 'applications/feed/management/PhabricatorFeedManagementWorkflow.php', 1592 1581 'PhabricatorFeedPublicStreamController' => 'applications/feed/controller/PhabricatorFeedPublicStreamController.php', 1593 1582 'PhabricatorFeedQuery' => 'applications/feed/query/PhabricatorFeedQuery.php', 1594 - 'PhabricatorFeedSchemaSpec' => 'applications/feed/storage/PhabricatorFeedSchemaSpec.php', 1595 1583 'PhabricatorFeedSearchEngine' => 'applications/feed/query/PhabricatorFeedSearchEngine.php', 1596 1584 'PhabricatorFeedStory' => 'applications/feed/story/PhabricatorFeedStory.php', 1597 1585 'PhabricatorFeedStoryAggregate' => 'applications/feed/story/PhabricatorFeedStoryAggregate.php', ··· 1658 1646 'PhabricatorFlagEditController' => 'applications/flag/controller/PhabricatorFlagEditController.php', 1659 1647 'PhabricatorFlagListController' => 'applications/flag/controller/PhabricatorFlagListController.php', 1660 1648 'PhabricatorFlagQuery' => 'applications/flag/query/PhabricatorFlagQuery.php', 1661 - 'PhabricatorFlagSchemaSpec' => 'applications/flag/storage/PhabricatorFlagSchemaSpec.php', 1662 1649 'PhabricatorFlagSearchEngine' => 'applications/flag/query/PhabricatorFlagSearchEngine.php', 1663 1650 'PhabricatorFlagSelectControl' => 'applications/flag/view/PhabricatorFlagSelectControl.php', 1664 1651 'PhabricatorFlaggableInterface' => 'applications/flag/interface/PhabricatorFlaggableInterface.php', ··· 1851 1838 'PhabricatorOAuthClientListController' => 'applications/oauthserver/controller/client/PhabricatorOAuthClientListController.php', 1852 1839 'PhabricatorOAuthClientViewController' => 'applications/oauthserver/controller/client/PhabricatorOAuthClientViewController.php', 1853 1840 'PhabricatorOAuthResponse' => 'applications/oauthserver/PhabricatorOAuthResponse.php', 1854 - 'PhabricatorOAuthSchemaSpec' => 'applications/oauthserver/storage/PhabricatorOAuthSchemaSpec.php', 1855 1841 'PhabricatorOAuthServer' => 'applications/oauthserver/PhabricatorOAuthServer.php', 1856 1842 'PhabricatorOAuthServerAccessToken' => 'applications/oauthserver/storage/PhabricatorOAuthServerAccessToken.php', 1857 1843 'PhabricatorOAuthServerApplication' => 'applications/oauthserver/application/PhabricatorOAuthServerApplication.php', ··· 1900 1886 'PhabricatorOwnersPackageQuery' => 'applications/owners/query/PhabricatorOwnersPackageQuery.php', 1901 1887 'PhabricatorOwnersPackageTestCase' => 'applications/owners/storage/__tests__/PhabricatorOwnersPackageTestCase.php', 1902 1888 'PhabricatorOwnersPath' => 'applications/owners/storage/PhabricatorOwnersPath.php', 1903 - 'PhabricatorOwnersSchemaSpec' => 'applications/owners/storage/PhabricatorOwnersSchemaSpec.php', 1904 1889 'PhabricatorPHDConfigOptions' => 'applications/config/option/PhabricatorPHDConfigOptions.php', 1905 1890 'PhabricatorPHID' => 'applications/phid/storage/PhabricatorPHID.php', 1906 1891 'PhabricatorPHIDConstants' => 'applications/phid/PhabricatorPHIDConstants.php', ··· 2005 1990 'PhabricatorPolicyRuleLunarPhase' => 'applications/policy/rule/PhabricatorPolicyRuleLunarPhase.php', 2006 1991 'PhabricatorPolicyRuleProjects' => 'applications/policy/rule/PhabricatorPolicyRuleProjects.php', 2007 1992 'PhabricatorPolicyRuleUsers' => 'applications/policy/rule/PhabricatorPolicyRuleUsers.php', 2008 - 'PhabricatorPolicySchemaSpec' => 'applications/policy/storage/PhabricatorPolicySchemaSpec.php', 2009 1993 'PhabricatorPolicyTestCase' => 'applications/policy/__tests__/PhabricatorPolicyTestCase.php', 2010 1994 'PhabricatorPolicyTestObject' => 'applications/policy/__tests__/PhabricatorPolicyTestObject.php', 2011 1995 'PhabricatorPolicyType' => 'applications/policy/constants/PhabricatorPolicyType.php', ··· 2216 2200 'PhabricatorSearchOrderController' => 'applications/search/controller/PhabricatorSearchOrderController.php', 2217 2201 'PhabricatorSearchRelationship' => 'applications/search/constants/PhabricatorSearchRelationship.php', 2218 2202 'PhabricatorSearchResultView' => 'applications/search/view/PhabricatorSearchResultView.php', 2219 - 'PhabricatorSearchSchemaSpec' => 'applications/search/storage/PhabricatorSearchSchemaSpec.php', 2220 2203 'PhabricatorSearchSelectController' => 'applications/search/controller/PhabricatorSearchSelectController.php', 2221 2204 'PhabricatorSearchWorker' => 'applications/search/worker/PhabricatorSearchWorker.php', 2222 2205 'PhabricatorSecurityConfigOptions' => 'applications/config/option/PhabricatorSecurityConfigOptions.php', ··· 2345 2328 'PhabricatorSystemRemoveDestroyWorkflow' => 'applications/system/management/PhabricatorSystemRemoveDestroyWorkflow.php', 2346 2329 'PhabricatorSystemRemoveLogWorkflow' => 'applications/system/management/PhabricatorSystemRemoveLogWorkflow.php', 2347 2330 'PhabricatorSystemRemoveWorkflow' => 'applications/system/management/PhabricatorSystemRemoveWorkflow.php', 2348 - 'PhabricatorSystemSchemaSpec' => 'applications/system/storage/PhabricatorSystemSchemaSpec.php', 2349 2331 'PhabricatorSystemSelectEncodingController' => 'applications/system/controller/PhabricatorSystemSelectEncodingController.php', 2350 2332 'PhabricatorSystemSelectHighlightController' => 'applications/system/controller/PhabricatorSystemSelectHighlightController.php', 2351 2333 'PhabricatorTaskmasterDaemon' => 'infrastructure/daemon/workers/PhabricatorTaskmasterDaemon.php', ··· 2373 2355 'PhabricatorTokenQuery' => 'applications/tokens/query/PhabricatorTokenQuery.php', 2374 2356 'PhabricatorTokenReceiverInterface' => 'applications/tokens/interface/PhabricatorTokenReceiverInterface.php', 2375 2357 'PhabricatorTokenReceiverQuery' => 'applications/tokens/query/PhabricatorTokenReceiverQuery.php', 2376 - 'PhabricatorTokenSchemaSpec' => 'applications/tokens/storage/PhabricatorTokenSchemaSpec.php', 2377 2358 'PhabricatorTokenTokenPHIDType' => 'applications/tokens/phid/PhabricatorTokenTokenPHIDType.php', 2378 2359 'PhabricatorTokenUIEventListener' => 'applications/tokens/event/PhabricatorTokenUIEventListener.php', 2379 2360 'PhabricatorTokensApplication' => 'applications/tokens/application/PhabricatorTokensApplication.php', ··· 2443 2424 'PhabricatorWorkerDAO' => 'infrastructure/daemon/workers/storage/PhabricatorWorkerDAO.php', 2444 2425 'PhabricatorWorkerLeaseQuery' => 'infrastructure/daemon/workers/query/PhabricatorWorkerLeaseQuery.php', 2445 2426 'PhabricatorWorkerPermanentFailureException' => 'infrastructure/daemon/workers/exception/PhabricatorWorkerPermanentFailureException.php', 2446 - 'PhabricatorWorkerSchemaSpec' => 'infrastructure/daemon/workers/storage/PhabricatorWorkerSchemaSpec.php', 2447 2427 'PhabricatorWorkerTask' => 'infrastructure/daemon/workers/storage/PhabricatorWorkerTask.php', 2448 2428 'PhabricatorWorkerTaskData' => 'infrastructure/daemon/workers/storage/PhabricatorWorkerTaskData.php', 2449 2429 'PhabricatorWorkerTaskDetailController' => 'applications/daemon/controller/PhabricatorWorkerTaskDetailController.php', ··· 2461 2441 'PhabricatorXHPASTViewPanelController' => 'applications/phpast/controller/PhabricatorXHPASTViewPanelController.php', 2462 2442 'PhabricatorXHPASTViewParseTree' => 'applications/phpast/storage/PhabricatorXHPASTViewParseTree.php', 2463 2443 'PhabricatorXHPASTViewRunController' => 'applications/phpast/controller/PhabricatorXHPASTViewRunController.php', 2464 - 'PhabricatorXHPASTViewSchemaSpec' => 'applications/phpast/storage/PhabricatorXHPASTViewSchemaSpec.php', 2465 2444 'PhabricatorXHPASTViewStreamController' => 'applications/phpast/controller/PhabricatorXHPASTViewStreamController.php', 2466 2445 'PhabricatorXHPASTViewTreeController' => 'applications/phpast/controller/PhabricatorXHPASTViewTreeController.php', 2467 2446 'PhabricatorXHProfApplication' => 'applications/xhprof/application/PhabricatorXHProfApplication.php', ··· 2473 2452 'PhabricatorXHProfProfileView' => 'applications/xhprof/view/PhabricatorXHProfProfileView.php', 2474 2453 'PhabricatorXHProfSample' => 'applications/xhprof/storage/PhabricatorXHProfSample.php', 2475 2454 'PhabricatorXHProfSampleListController' => 'applications/xhprof/controller/PhabricatorXHProfSampleListController.php', 2476 - 'PhabricatorXHProfSchemaSpec' => 'applications/xhprof/storage/PhabricatorXHProfSchemaSpec.php', 2477 2455 'PhabricatorYoutubeRemarkupRule' => 'infrastructure/markup/rule/PhabricatorYoutubeRemarkupRule.php', 2478 2456 'PhameBasicBlogSkin' => 'applications/phame/skins/PhameBasicBlogSkin.php', 2479 2457 'PhameBasicTemplateBlogSkin' => 'applications/phame/skins/PhameBasicTemplateBlogSkin.php', ··· 2513 2491 'PhluxDAO' => 'applications/phlux/storage/PhluxDAO.php', 2514 2492 'PhluxEditController' => 'applications/phlux/controller/PhluxEditController.php', 2515 2493 'PhluxListController' => 'applications/phlux/controller/PhluxListController.php', 2516 - 'PhluxSchemaSpec' => 'applications/phlux/storage/PhluxSchemaSpec.php', 2517 2494 'PhluxTransaction' => 'applications/phlux/storage/PhluxTransaction.php', 2518 2495 'PhluxTransactionQuery' => 'applications/phlux/query/PhluxTransactionQuery.php', 2519 2496 'PhluxVariable' => 'applications/phlux/storage/PhluxVariable.php', ··· 2647 2624 'PhrequentListController' => 'applications/phrequent/controller/PhrequentListController.php', 2648 2625 'PhrequentPopConduitAPIMethod' => 'applications/phrequent/conduit/PhrequentPopConduitAPIMethod.php', 2649 2626 'PhrequentPushConduitAPIMethod' => 'applications/phrequent/conduit/PhrequentPushConduitAPIMethod.php', 2650 - 'PhrequentSchemaSpec' => 'applications/phrequent/storage/PhrequentSchemaSpec.php', 2651 2627 'PhrequentSearchEngine' => 'applications/phrequent/query/PhrequentSearchEngine.php', 2652 2628 'PhrequentTimeBlock' => 'applications/phrequent/storage/PhrequentTimeBlock.php', 2653 2629 'PhrequentTimeBlockTestCase' => 'applications/phrequent/storage/__tests__/PhrequentTimeBlockTestCase.php', ··· 2817 2793 'ReleephRequestViewController' => 'applications/releeph/controller/request/ReleephRequestViewController.php', 2818 2794 'ReleephRequestorFieldSpecification' => 'applications/releeph/field/specification/ReleephRequestorFieldSpecification.php', 2819 2795 'ReleephRevisionFieldSpecification' => 'applications/releeph/field/specification/ReleephRevisionFieldSpecification.php', 2820 - 'ReleephSchemaSpec' => 'applications/releeph/storage/ReleephSchemaSpec.php', 2821 2796 'ReleephSeverityFieldSpecification' => 'applications/releeph/field/specification/ReleephSeverityFieldSpecification.php', 2822 2797 'ReleephSummaryFieldSpecification' => 'applications/releeph/field/specification/ReleephSummaryFieldSpecification.php', 2823 2798 'ReleephWorkCanPushConduitAPIMethod' => 'applications/releeph/conduit/work/ReleephWorkCanPushConduitAPIMethod.php', ··· 3393 3368 'DivinerParameterTableView' => 'AphrontTagView', 3394 3369 'DivinerPublishCache' => 'DivinerDiskCache', 3395 3370 'DivinerReturnTableView' => 'AphrontTagView', 3396 - 'DivinerSchemaSpec' => 'PhabricatorConfigSchemaSpec', 3397 3371 'DivinerSectionView' => 'AphrontTagView', 3398 3372 'DivinerStaticPublisher' => 'DivinerPublisher', 3399 3373 'DivinerSymbolRemarkupRule' => 'PhutilRemarkupRule', ··· 3496 3470 'DrydockResourceViewController' => 'DrydockResourceController', 3497 3471 'DrydockSFTPFilesystemInterface' => 'DrydockFilesystemInterface', 3498 3472 'DrydockSSHCommandInterface' => 'DrydockCommandInterface', 3499 - 'DrydockSchemaSpec' => 'PhabricatorConfigSchemaSpec', 3500 3473 'DrydockWebrootInterface' => 'DrydockInterface', 3501 3474 'DrydockWorkingCopyBlueprintImplementation' => 'DrydockBlueprintImplementation', 3502 3475 'FeedConduitAPIMethod' => 'ConduitAPIMethod', ··· 4134 4107 'PhabricatorAuditManagementWorkflow' => 'PhabricatorManagementWorkflow', 4135 4108 'PhabricatorAuditPreviewController' => 'PhabricatorAuditController', 4136 4109 'PhabricatorAuditReplyHandler' => 'PhabricatorMailReplyHandler', 4137 - 'PhabricatorAuditSchemaSpec' => 'PhabricatorConfigSchemaSpec', 4138 4110 'PhabricatorAuditTransaction' => 'PhabricatorApplicationTransaction', 4139 4111 'PhabricatorAuditTransactionComment' => 'PhabricatorApplicationTransactionComment', 4140 4112 'PhabricatorAuditTransactionQuery' => 'PhabricatorApplicationTransactionQuery', ··· 4179 4151 'PhabricatorAuthProviderConfigTransactionQuery' => 'PhabricatorApplicationTransactionQuery', 4180 4152 'PhabricatorAuthRegisterController' => 'PhabricatorAuthController', 4181 4153 'PhabricatorAuthRevokeTokenController' => 'PhabricatorAuthController', 4182 - 'PhabricatorAuthSchemaSpec' => 'PhabricatorConfigSchemaSpec', 4183 4154 'PhabricatorAuthSession' => array( 4184 4155 'PhabricatorAuthDAO', 4185 4156 'PhabricatorPolicyInterface', ··· 4244 4215 'PhabricatorCalendarEventViewController' => 'PhabricatorCalendarController', 4245 4216 'PhabricatorCalendarHoliday' => 'PhabricatorCalendarDAO', 4246 4217 'PhabricatorCalendarHolidayTestCase' => 'PhabricatorTestCase', 4247 - 'PhabricatorCalendarSchemaSpec' => 'PhabricatorConfigSchemaSpec', 4248 4218 'PhabricatorCalendarViewController' => 'PhabricatorCalendarController', 4249 4219 'PhabricatorCampfireProtocolAdapter' => 'PhabricatorBotBaseStreamingProtocolAdapter', 4250 4220 'PhabricatorCelerityTestCase' => 'PhabricatorTestCase', ··· 4266 4236 ), 4267 4237 'PhabricatorChatLogEventType' => 'PhabricatorChatLogConstants', 4268 4238 'PhabricatorChatLogQuery' => 'PhabricatorCursorPagedPolicyAwareQuery', 4269 - 'PhabricatorChatLogSchemaSpec' => 'PhabricatorConfigSchemaSpec', 4270 4239 'PhabricatorCommitBranchesField' => 'PhabricatorCommitCustomField', 4271 4240 'PhabricatorCommitCustomField' => 'PhabricatorCustomField', 4272 4241 'PhabricatorCommitSearchEngine' => 'PhabricatorApplicationSearchEngine', ··· 4288 4257 'PhabricatorPolicyInterface', 4289 4258 ), 4290 4259 'PhabricatorConduitMethodQuery' => 'PhabricatorCursorPagedPolicyAwareQuery', 4291 - 'PhabricatorConduitSchemaSpec' => 'PhabricatorConfigSchemaSpec', 4292 4260 'PhabricatorConduitSearchEngine' => 'PhabricatorApplicationSearchEngine', 4293 4261 'PhabricatorConduitTokenController' => 'PhabricatorConduitController', 4294 4262 'PhabricatorConfigAllController' => 'PhabricatorConfigController', ··· 4296 4264 'PhabricatorConfigColumnSchema' => 'PhabricatorConfigStorageSchema', 4297 4265 'PhabricatorConfigConfigPHIDType' => 'PhabricatorPHIDType', 4298 4266 'PhabricatorConfigController' => 'PhabricatorController', 4267 + 'PhabricatorConfigCoreSchemaSpec' => 'PhabricatorConfigSchemaSpec', 4299 4268 'PhabricatorConfigDatabaseController' => 'PhabricatorConfigController', 4300 4269 'PhabricatorConfigDatabaseIssueController' => 'PhabricatorConfigDatabaseController', 4301 4270 'PhabricatorConfigDatabaseSchema' => 'PhabricatorConfigStorageSchema', ··· 4334 4303 'PhabricatorConfigSchemaQuery' => 'Phobject', 4335 4304 'PhabricatorConfigSchemaSpec' => 'Phobject', 4336 4305 'PhabricatorConfigServerSchema' => 'PhabricatorConfigStorageSchema', 4337 - 'PhabricatorConfigSettingsSchemaSpec' => 'PhabricatorConfigSchemaSpec', 4338 4306 'PhabricatorConfigStackSource' => 'PhabricatorConfigSource', 4339 4307 'PhabricatorConfigStorageSchema' => 'Phobject', 4340 4308 'PhabricatorConfigTableSchema' => 'PhabricatorConfigStorageSchema', ··· 4362 4330 'PhabricatorCountdownListController' => 'PhabricatorCountdownController', 4363 4331 'PhabricatorCountdownQuery' => 'PhabricatorCursorPagedPolicyAwareQuery', 4364 4332 'PhabricatorCountdownRemarkupRule' => 'PhabricatorObjectRemarkupRule', 4365 - 'PhabricatorCountdownSchemaSpec' => 'PhabricatorConfigSchemaSpec', 4366 4333 'PhabricatorCountdownSearchEngine' => 'PhabricatorApplicationSearchEngine', 4367 4334 'PhabricatorCountdownView' => 'AphrontTagView', 4368 4335 'PhabricatorCountdownViewController' => 'PhabricatorCountdownController', ··· 4407 4374 'PhabricatorDaemonManagementStatusWorkflow' => 'PhabricatorDaemonManagementWorkflow', 4408 4375 'PhabricatorDaemonManagementStopWorkflow' => 'PhabricatorDaemonManagementWorkflow', 4409 4376 'PhabricatorDaemonManagementWorkflow' => 'PhabricatorManagementWorkflow', 4410 - 'PhabricatorDaemonSchemaSpec' => 'PhabricatorConfigSchemaSpec', 4411 4377 'PhabricatorDaemonTaskGarbageCollector' => 'PhabricatorGarbageCollector', 4412 4378 'PhabricatorDaemonsApplication' => 'PhabricatorApplication', 4413 4379 'PhabricatorDashboard' => array( ··· 4487 4453 'PhabricatorDoorkeeperApplication' => 'PhabricatorApplication', 4488 4454 'PhabricatorDraft' => 'PhabricatorDraftDAO', 4489 4455 'PhabricatorDraftDAO' => 'PhabricatorLiskDAO', 4490 - 'PhabricatorDraftSchemaSpec' => 'PhabricatorConfigSchemaSpec', 4491 4456 'PhabricatorDrydockApplication' => 'PhabricatorApplication', 4492 4457 'PhabricatorEdgeConfig' => 'PhabricatorEdgeConstants', 4493 4458 'PhabricatorEdgeCycleException' => 'Exception', ··· 4533 4498 'PhabricatorFactManagementStatusWorkflow' => 'PhabricatorFactManagementWorkflow', 4534 4499 'PhabricatorFactManagementWorkflow' => 'PhabricatorManagementWorkflow', 4535 4500 'PhabricatorFactRaw' => 'PhabricatorFactDAO', 4536 - 'PhabricatorFactSchemaSpec' => 'PhabricatorConfigSchemaSpec', 4537 4501 'PhabricatorFactSimpleSpec' => 'PhabricatorFactSpec', 4538 4502 'PhabricatorFactUpdateIterator' => 'PhutilBufferedIterator', 4539 4503 'PhabricatorFeedApplication' => 'PhabricatorApplication', ··· 4546 4510 'PhabricatorFeedManagementWorkflow' => 'PhabricatorManagementWorkflow', 4547 4511 'PhabricatorFeedPublicStreamController' => 'PhabricatorFeedController', 4548 4512 'PhabricatorFeedQuery' => 'PhabricatorCursorPagedPolicyAwareQuery', 4549 - 'PhabricatorFeedSchemaSpec' => 'PhabricatorConfigSchemaSpec', 4550 4513 'PhabricatorFeedSearchEngine' => 'PhabricatorApplicationSearchEngine', 4551 4514 'PhabricatorFeedStory' => array( 4552 4515 'PhabricatorPolicyInterface', ··· 4627 4590 'PhabricatorFlagEditController' => 'PhabricatorFlagController', 4628 4591 'PhabricatorFlagListController' => 'PhabricatorFlagController', 4629 4592 'PhabricatorFlagQuery' => 'PhabricatorCursorPagedPolicyAwareQuery', 4630 - 'PhabricatorFlagSchemaSpec' => 'PhabricatorConfigSchemaSpec', 4631 4593 'PhabricatorFlagSearchEngine' => 'PhabricatorApplicationSearchEngine', 4632 4594 'PhabricatorFlagSelectControl' => 'AphrontFormControl', 4633 4595 'PhabricatorFlaggableInterface' => 'PhabricatorPHIDInterface', ··· 4810 4772 'PhabricatorOAuthClientListController' => 'PhabricatorOAuthClientController', 4811 4773 'PhabricatorOAuthClientViewController' => 'PhabricatorOAuthClientController', 4812 4774 'PhabricatorOAuthResponse' => 'AphrontResponse', 4813 - 'PhabricatorOAuthSchemaSpec' => 'PhabricatorConfigSchemaSpec', 4814 4775 'PhabricatorOAuthServerAccessToken' => 'PhabricatorOAuthServerDAO', 4815 4776 'PhabricatorOAuthServerApplication' => 'PhabricatorApplication', 4816 4777 'PhabricatorOAuthServerAuthController' => 'PhabricatorAuthController', ··· 4858 4819 'PhabricatorOwnersPackageQuery' => 'PhabricatorCursorPagedPolicyAwareQuery', 4859 4820 'PhabricatorOwnersPackageTestCase' => 'PhabricatorTestCase', 4860 4821 'PhabricatorOwnersPath' => 'PhabricatorOwnersDAO', 4861 - 'PhabricatorOwnersSchemaSpec' => 'PhabricatorConfigSchemaSpec', 4862 4822 'PhabricatorPHDConfigOptions' => 'PhabricatorApplicationConfigOptions', 4863 4823 'PhabricatorPHPASTApplication' => 'PhabricatorApplication', 4864 4824 'PhabricatorPHPMailerConfigOptions' => 'PhabricatorApplicationConfigOptions', ··· 4969 4929 'PhabricatorPolicyRuleLunarPhase' => 'PhabricatorPolicyRule', 4970 4930 'PhabricatorPolicyRuleProjects' => 'PhabricatorPolicyRule', 4971 4931 'PhabricatorPolicyRuleUsers' => 'PhabricatorPolicyRule', 4972 - 'PhabricatorPolicySchemaSpec' => 'PhabricatorConfigSchemaSpec', 4973 4932 'PhabricatorPolicyTestCase' => 'PhabricatorTestCase', 4974 4933 'PhabricatorPolicyTestObject' => 'PhabricatorPolicyInterface', 4975 4934 'PhabricatorPolicyType' => 'PhabricatorPolicyConstants', ··· 5221 5180 'PhabricatorSearchManagementWorkflow' => 'PhabricatorManagementWorkflow', 5222 5181 'PhabricatorSearchOrderController' => 'PhabricatorSearchBaseController', 5223 5182 'PhabricatorSearchResultView' => 'AphrontView', 5224 - 'PhabricatorSearchSchemaSpec' => 'PhabricatorConfigSchemaSpec', 5225 5183 'PhabricatorSearchSelectController' => 'PhabricatorSearchBaseController', 5226 5184 'PhabricatorSearchWorker' => 'PhabricatorWorker', 5227 5185 'PhabricatorSecurityConfigOptions' => 'PhabricatorApplicationConfigOptions', ··· 5347 5305 'PhabricatorSystemRemoveDestroyWorkflow' => 'PhabricatorSystemRemoveWorkflow', 5348 5306 'PhabricatorSystemRemoveLogWorkflow' => 'PhabricatorSystemRemoveWorkflow', 5349 5307 'PhabricatorSystemRemoveWorkflow' => 'PhabricatorManagementWorkflow', 5350 - 'PhabricatorSystemSchemaSpec' => 'PhabricatorConfigSchemaSpec', 5351 5308 'PhabricatorSystemSelectEncodingController' => 'PhabricatorController', 5352 5309 'PhabricatorSystemSelectHighlightController' => 'PhabricatorController', 5353 5310 'PhabricatorTaskmasterDaemon' => 'PhabricatorDaemon', ··· 5377 5334 'PhabricatorTokenLeaderController' => 'PhabricatorTokenController', 5378 5335 'PhabricatorTokenQuery' => 'PhabricatorCursorPagedPolicyAwareQuery', 5379 5336 'PhabricatorTokenReceiverQuery' => 'PhabricatorCursorPagedPolicyAwareQuery', 5380 - 'PhabricatorTokenSchemaSpec' => 'PhabricatorConfigSchemaSpec', 5381 5337 'PhabricatorTokenTokenPHIDType' => 'PhabricatorPHIDType', 5382 5338 'PhabricatorTokenUIEventListener' => 'PhabricatorEventListener', 5383 5339 'PhabricatorTokensApplication' => 'PhabricatorApplication', ··· 5454 5410 'PhabricatorWorkerDAO' => 'PhabricatorLiskDAO', 5455 5411 'PhabricatorWorkerLeaseQuery' => 'PhabricatorQuery', 5456 5412 'PhabricatorWorkerPermanentFailureException' => 'Exception', 5457 - 'PhabricatorWorkerSchemaSpec' => 'PhabricatorConfigSchemaSpec', 5458 5413 'PhabricatorWorkerTask' => 'PhabricatorWorkerDAO', 5459 5414 'PhabricatorWorkerTaskData' => 'PhabricatorWorkerDAO', 5460 5415 'PhabricatorWorkerTaskDetailController' => 'PhabricatorDaemonController', ··· 5472 5427 'PhabricatorXHPASTViewPanelController' => 'PhabricatorXHPASTViewController', 5473 5428 'PhabricatorXHPASTViewParseTree' => 'PhabricatorXHPASTViewDAO', 5474 5429 'PhabricatorXHPASTViewRunController' => 'PhabricatorXHPASTViewController', 5475 - 'PhabricatorXHPASTViewSchemaSpec' => 'PhabricatorConfigSchemaSpec', 5476 5430 'PhabricatorXHPASTViewStreamController' => 'PhabricatorXHPASTViewPanelController', 5477 5431 'PhabricatorXHPASTViewTreeController' => 'PhabricatorXHPASTViewPanelController', 5478 5432 'PhabricatorXHProfApplication' => 'PhabricatorApplication', ··· 5484 5438 'PhabricatorXHProfProfileView' => 'AphrontView', 5485 5439 'PhabricatorXHProfSample' => 'PhabricatorXHProfDAO', 5486 5440 'PhabricatorXHProfSampleListController' => 'PhabricatorXHProfController', 5487 - 'PhabricatorXHProfSchemaSpec' => 'PhabricatorConfigSchemaSpec', 5488 5441 'PhabricatorYoutubeRemarkupRule' => 'PhutilRemarkupRule', 5489 5442 'PhameBasicBlogSkin' => 'PhameBlogSkin', 5490 5443 'PhameBasicTemplateBlogSkin' => 'PhameBasicBlogSkin', ··· 5532 5485 'PhluxDAO' => 'PhabricatorLiskDAO', 5533 5486 'PhluxEditController' => 'PhluxController', 5534 5487 'PhluxListController' => 'PhluxController', 5535 - 'PhluxSchemaSpec' => 'PhabricatorConfigSchemaSpec', 5536 5488 'PhluxTransaction' => 'PhabricatorApplicationTransaction', 5537 5489 'PhluxTransactionQuery' => 'PhabricatorApplicationTransactionQuery', 5538 5490 'PhluxVariable' => array( ··· 5710 5662 'PhrequentListController' => 'PhrequentController', 5711 5663 'PhrequentPopConduitAPIMethod' => 'PhrequentConduitAPIMethod', 5712 5664 'PhrequentPushConduitAPIMethod' => 'PhrequentConduitAPIMethod', 5713 - 'PhrequentSchemaSpec' => 'PhabricatorConfigSchemaSpec', 5714 5665 'PhrequentSearchEngine' => 'PhabricatorApplicationSearchEngine', 5715 5666 'PhrequentTimeBlock' => 'Phobject', 5716 5667 'PhrequentTimeBlockTestCase' => 'PhabricatorTestCase', ··· 5922 5873 'ReleephRequestViewController' => 'ReleephBranchController', 5923 5874 'ReleephRequestorFieldSpecification' => 'ReleephFieldSpecification', 5924 5875 'ReleephRevisionFieldSpecification' => 'ReleephFieldSpecification', 5925 - 'ReleephSchemaSpec' => 'PhabricatorConfigSchemaSpec', 5926 5876 'ReleephSeverityFieldSpecification' => 'ReleephLevelFieldSpecification', 5927 5877 'ReleephSummaryFieldSpecification' => 'ReleephFieldSpecification', 5928 5878 'ReleephWorkCanPushConduitAPIMethod' => 'ReleephConduitAPIMethod',
-11
src/applications/audit/storage/PhabricatorAuditSchemaSpec.php
··· 1 - <?php 2 - 3 - final class PhabricatorAuditSchemaSpec extends PhabricatorConfigSchemaSpec { 4 - 5 - public function buildSchemata() { 6 - $this->buildTransactionSchema( 7 - new PhabricatorAuditTransaction(), 8 - new PhabricatorAuditTransactionComment()); 9 - } 10 - 11 - }
-11
src/applications/auth/storage/PhabricatorAuthSchemaSpec.php
··· 1 - <?php 2 - 3 - final class PhabricatorAuthSchemaSpec extends PhabricatorConfigSchemaSpec { 4 - 5 - public function buildSchemata() { 6 - $this->buildLiskSchemata('PhabricatorAuthDAO'); 7 - $this->buildTransactionSchema( 8 - new PhabricatorAuthProviderConfigTransaction()); 9 - } 10 - 11 - }
-2
src/applications/cache/storage/PhabricatorCacheSchemaSpec.php
··· 3 3 final class PhabricatorCacheSchemaSpec extends PhabricatorConfigSchemaSpec { 4 4 5 5 public function buildSchemata() { 6 - $this->buildLiskSchemata('PhabricatorCacheDAO'); 7 - 8 6 $this->buildRawSchema( 9 7 'cache', 10 8 id(new PhabricatorKeyValueDatabaseCache())->getTableName(),
-10
src/applications/calendar/storage/PhabricatorCalendarSchemaSpec.php
··· 1 - <?php 2 - 3 - final class PhabricatorCalendarSchemaSpec 4 - extends PhabricatorConfigSchemaSpec { 5 - 6 - public function buildSchemata() { 7 - $this->buildLiskSchemata('PhabricatorCalendarDAO'); 8 - } 9 - 10 - }
-9
src/applications/chatlog/storage/PhabricatorChatLogSchemaSpec.php
··· 1 - <?php 2 - 3 - final class PhabricatorChatLogSchemaSpec extends PhabricatorConfigSchemaSpec { 4 - 5 - public function buildSchemata() { 6 - $this->buildLiskSchemata('PhabricatorChatLogDAO'); 7 - } 8 - 9 - }
-9
src/applications/conduit/storage/PhabricatorConduitSchemaSpec.php
··· 1 - <?php 2 - 3 - final class PhabricatorConduitSchemaSpec extends PhabricatorConfigSchemaSpec { 4 - 5 - public function buildSchemata() { 6 - $this->buildLiskSchemata('PhabricatorConduitDAO'); 7 - } 8 - 9 - }
+46
src/applications/config/schema/PhabricatorConfigCoreSchemaSpec.php
··· 1 + <?php 2 + 3 + /** 4 + * Builds schemata definitions for core infrastructure. 5 + */ 6 + final class PhabricatorConfigCoreSchemaSpec 7 + extends PhabricatorConfigSchemaSpec { 8 + 9 + public function buildSchemata() { 10 + // Build all Lisk table schemata. 11 + 12 + $lisk_objects = id(new PhutilSymbolLoader()) 13 + ->setAncestorClass('PhabricatorLiskDAO') 14 + ->loadObjects(); 15 + 16 + $counters = array(); 17 + foreach ($lisk_objects as $object) { 18 + if ($object->getConfigOption(LiskDAO::CONFIG_NO_TABLE)) { 19 + continue; 20 + } 21 + $this->buildLiskObjectSchema($object); 22 + 23 + $ids_counter = LiskDAO::IDS_COUNTER; 24 + if ($object->getConfigOption(LiskDAO::CONFIG_IDS) == $ids_counter) { 25 + $counters[$object->getApplicationName()] = true; 26 + } 27 + } 28 + 29 + foreach ($counters as $database => $ignored) { 30 + $this->buildRawSchema( 31 + $database, 32 + PhabricatorLiskDAO::COUNTER_TABLE_NAME, 33 + array( 34 + 'counterName' => 'text32', 35 + 'counterValue' => 'id64', 36 + ), 37 + array( 38 + 'PRIMARY' => array( 39 + 'columns' => array('counterName'), 40 + 'unique' => true, 41 + ), 42 + )); 43 + } 44 + 45 + } 46 + }
+1 -51
src/applications/config/schema/PhabricatorConfigSchemaSpec.php
··· 45 45 46 46 abstract public function buildSchemata(); 47 47 48 - protected function buildLiskSchemata($base) { 49 - 50 - $objects = id(new PhutilSymbolLoader()) 51 - ->setAncestorClass($base) 52 - ->loadObjects(); 53 - 54 - foreach ($objects as $object) { 55 - if ($object->getConfigOption(LiskDAO::CONFIG_NO_TABLE)) { 56 - continue; 57 - } 58 - $this->buildLiskObjectSchema($object); 59 - } 60 - } 61 - 62 - protected function buildTransactionSchema( 63 - PhabricatorApplicationTransaction $xaction, 64 - PhabricatorApplicationTransactionComment $comment = null) { 65 - 66 - $this->buildLiskObjectSchema($xaction); 67 - if ($comment) { 68 - $this->buildLiskObjectSchema($comment); 69 - } 70 - } 71 - 72 - protected function buildCustomFieldSchemata( 73 - PhabricatorLiskDAO $storage, 74 - array $indexes) { 75 - 76 - $this->buildLiskObjectSchema($storage); 77 - foreach ($indexes as $index) { 78 - $this->buildLiskObjectSchema($index); 79 - } 80 - } 81 - 82 - private function buildLiskObjectSchema(PhabricatorLiskDAO $object) { 48 + protected function buildLiskObjectSchema(PhabricatorLiskDAO $object) { 83 49 $this->buildRawSchema( 84 50 $object->getApplicationName(), 85 51 $object->getTableName(), ··· 169 135 array( 170 136 'PRIMARY' => array( 171 137 'columns' => array('id'), 172 - 'unique' => true, 173 - ), 174 - )); 175 - } 176 - 177 - public function buildCounterSchema(PhabricatorLiskDAO $object) { 178 - $this->buildRawSchema( 179 - $object->getApplicationName(), 180 - PhabricatorLiskDAO::COUNTER_TABLE_NAME, 181 - array( 182 - 'counterName' => 'text32', 183 - 'counterValue' => 'id64', 184 - ), 185 - array( 186 - 'PRIMARY' => array( 187 - 'columns' => array('counterName'), 188 138 'unique' => true, 189 139 ), 190 140 ));
-11
src/applications/config/storage/PhabricatorConfigSettingsSchemaSpec.php
··· 1 - <?php 2 - 3 - final class PhabricatorConfigSettingsSchemaSpec 4 - extends PhabricatorConfigSchemaSpec { 5 - 6 - public function buildSchemata() { 7 - $this->buildLiskSchemata('PhabricatorConfigEntryDAO'); 8 - $this->buildTransactionSchema(new PhabricatorConfigTransaction()); 9 - } 10 - 11 - }
-6
src/applications/conpherence/storage/ConpherenceSchemaSpec.php
··· 4 4 extends PhabricatorConfigSchemaSpec { 5 5 6 6 public function buildSchemata() { 7 - $this->buildLiskSchemata('ConpherenceDAO'); 8 - 9 7 $this->buildEdgeSchemata(new ConpherenceThread()); 10 - 11 - $this->buildTransactionSchema( 12 - new ConpherenceTransaction(), 13 - new ConpherenceTransactionComment()); 14 8 } 15 9 16 10 }
-10
src/applications/countdown/storage/PhabricatorCountdownSchemaSpec.php
··· 1 - <?php 2 - 3 - final class PhabricatorCountdownSchemaSpec 4 - extends PhabricatorConfigSchemaSpec { 5 - 6 - public function buildSchemata() { 7 - $this->buildLiskSchemata('PhabricatorCountdownDAO'); 8 - } 9 - 10 - }
-10
src/applications/daemon/storage/PhabricatorDaemonSchemaSpec.php
··· 1 - <?php 2 - 3 - final class PhabricatorDaemonSchemaSpec 4 - extends PhabricatorConfigSchemaSpec { 5 - 6 - public function buildSchemata() { 7 - $this->buildLiskSchemata('PhabricatorDaemonDAO'); 8 - } 9 - 10 - }
-7
src/applications/dashboard/storage/PhabricatorDashboardSchemaSpec.php
··· 4 4 extends PhabricatorConfigSchemaSpec { 5 5 6 6 public function buildSchemata() { 7 - $this->buildLiskSchemata('PhabricatorDashboardDAO'); 8 - 9 7 $this->buildEdgeSchemata(new PhabricatorDashboard()); 10 - 11 - $this->buildTransactionSchema( 12 - new PhabricatorDashboardTransaction()); 13 - $this->buildTransactionSchema( 14 - new PhabricatorDashboardPanelTransaction()); 15 8 } 16 9 17 10 }
-13
src/applications/differential/storage/DifferentialSchemaSpec.php
··· 3 3 final class DifferentialSchemaSpec extends PhabricatorConfigSchemaSpec { 4 4 5 5 public function buildSchemata() { 6 - $this->buildLiskSchemata('DifferentialDAO'); 7 - 8 6 $this->buildEdgeSchemata(new DifferentialRevision()); 9 - 10 - $this->buildTransactionSchema( 11 - new DifferentialTransaction(), 12 - new DifferentialTransactionComment()); 13 - 14 - $this->buildCustomFieldSchemata( 15 - new DifferentialCustomFieldStorage(), 16 - array( 17 - new DifferentialCustomFieldNumericIndex(), 18 - new DifferentialCustomFieldStringIndex(), 19 - )); 20 7 21 8 $this->buildRawSchema( 22 9 id(new DifferentialRevision())->getApplicationName(),
-9
src/applications/diviner/storage/DivinerSchemaSpec.php
··· 1 - <?php 2 - 3 - final class DivinerSchemaSpec extends PhabricatorConfigSchemaSpec { 4 - 5 - public function buildSchemata() { 6 - $this->buildLiskSchemata('DivinerDAO'); 7 - } 8 - 9 - }
-2
src/applications/doorkeeper/storage/DoorkeeperSchemaSpec.php
··· 4 4 extends PhabricatorConfigSchemaSpec { 5 5 6 6 public function buildSchemata() { 7 - $this->buildLiskSchemata('DoorkeeperDAO'); 8 - 9 7 $this->buildEdgeSchemata(new DoorkeeperExternalObject()); 10 8 } 11 9
-10
src/applications/draft/storage/PhabricatorDraftSchemaSpec.php
··· 1 - <?php 2 - 3 - final class PhabricatorDraftSchemaSpec 4 - extends PhabricatorConfigSchemaSpec { 5 - 6 - public function buildSchemata() { 7 - $this->buildLiskSchemata('PhabricatorDraftDAO'); 8 - } 9 - 10 - }
-14
src/applications/drydock/storage/DrydockSchemaSpec.php
··· 1 - <?php 2 - 3 - final class DrydockSchemaSpec 4 - extends PhabricatorConfigSchemaSpec { 5 - 6 - public function buildSchemata() { 7 - $this->buildLiskSchemata('DrydockDAO'); 8 - 9 - $this->buildTransactionSchema( 10 - new DrydockBlueprintTransaction()); 11 - 12 - } 13 - 14 - }
-9
src/applications/fact/storage/PhabricatorFactSchemaSpec.php
··· 1 - <?php 2 - 3 - final class PhabricatorFactSchemaSpec extends PhabricatorConfigSchemaSpec { 4 - 5 - public function buildSchemata() { 6 - $this->buildLiskSchemata('PhabricatorFactDAO'); 7 - } 8 - 9 - }
-10
src/applications/feed/storage/PhabricatorFeedSchemaSpec.php
··· 1 - <?php 2 - 3 - final class PhabricatorFeedSchemaSpec 4 - extends PhabricatorConfigSchemaSpec { 5 - 6 - public function buildSchemata() { 7 - $this->buildLiskSchemata('PhabricatorFeedDAO'); 8 - } 9 - 10 - }
-10
src/applications/files/storage/PhabricatorFileSchemaSpec.php
··· 4 4 extends PhabricatorConfigSchemaSpec { 5 5 6 6 public function buildSchemata() { 7 - $this->buildLiskSchemata('PhabricatorFileDAO'); 8 - 9 7 $this->buildEdgeSchemata(new PhabricatorFile()); 10 - 11 - $this->buildTransactionSchema( 12 - new PhabricatorFileTransaction(), 13 - new PhabricatorFileTransactionComment()); 14 - 15 - $this->buildTransactionSchema( 16 - new PhabricatorMacroTransaction(), 17 - new PhabricatorMacroTransactionComment()); 18 8 } 19 9 20 10 }
-10
src/applications/flag/storage/PhabricatorFlagSchemaSpec.php
··· 1 - <?php 2 - 3 - final class PhabricatorFlagSchemaSpec 4 - extends PhabricatorConfigSchemaSpec { 5 - 6 - public function buildSchemata() { 7 - $this->buildLiskSchemata('PhabricatorFlagDAO'); 8 - } 9 - 10 - }
-7
src/applications/fund/storage/FundSchemaSpec.php
··· 4 4 extends PhabricatorConfigSchemaSpec { 5 5 6 6 public function buildSchemata() { 7 - $this->buildLiskSchemata('FundDAO'); 8 7 $this->buildEdgeSchemata(new FundInitiative()); 9 - 10 - $this->buildTransactionSchema( 11 - new FundInitiativeTransaction()); 12 - 13 - $this->buildTransactionSchema( 14 - new FundBackerTransaction()); 15 8 } 16 9 17 10 }
-15
src/applications/harbormaster/storage/HarbormasterSchemaSpec.php
··· 3 3 final class HarbormasterSchemaSpec extends PhabricatorConfigSchemaSpec { 4 4 5 5 public function buildSchemata() { 6 - $this->buildLiskSchemata('HarbormasterDAO'); 7 - 8 6 $this->buildEdgeSchemata(new HarbormasterBuildable()); 9 - $this->buildCounterSchema(new HarbormasterBuildable()); 10 - 11 - $this->buildTransactionSchema( 12 - new HarbormasterBuildableTransaction()); 13 - 14 - $this->buildTransactionSchema( 15 - new HarbormasterBuildTransaction()); 16 - 17 - $this->buildTransactionSchema( 18 - new HarbormasterBuildPlanTransaction()); 19 - 20 - $this->buildTransactionSchema( 21 - new HarbormasterBuildStepTransaction()); 22 7 23 8 $this->buildRawSchema( 24 9 id(new HarbormasterBuildable())->getApplicationName(),
-6
src/applications/herald/storage/HeraldSchemaSpec.php
··· 3 3 final class HeraldSchemaSpec extends PhabricatorConfigSchemaSpec { 4 4 5 5 public function buildSchemata() { 6 - $this->buildLiskSchemata('HeraldDAO'); 7 - 8 - $this->buildTransactionSchema( 9 - new HeraldRuleTransaction(), 10 - new HeraldRuleTransactionComment()); 11 - 12 6 $this->buildRawSchema( 13 7 id(new HeraldRule())->getApplicationName(), 14 8 HeraldRule::TABLE_RULE_APPLIED,
-5
src/applications/legalpad/storage/LegalpadSchemaSpec.php
··· 4 4 extends PhabricatorConfigSchemaSpec { 5 5 6 6 public function buildSchemata() { 7 - $this->buildLiskSchemata('LegalpadDAO'); 8 7 $this->buildEdgeSchemata(new LegalpadDocument()); 9 - 10 - $this->buildTransactionSchema( 11 - new LegalpadTransaction(), 12 - new LegalpadTransactionComment()); 13 8 } 14 9 15 10 }
-12
src/applications/maniphest/storage/ManiphestSchemaSpec.php
··· 4 4 extends PhabricatorConfigSchemaSpec { 5 5 6 6 public function buildSchemata() { 7 - $this->buildLiskSchemata('ManiphestDAO'); 8 - 9 7 $this->buildEdgeSchemata(new ManiphestTask()); 10 - $this->buildTransactionSchema( 11 - new ManiphestTransaction(), 12 - new ManiphestTransactionComment()); 13 - 14 - $this->buildCustomFieldSchemata( 15 - new ManiphestCustomFieldStorage(), 16 - array( 17 - new ManiphestCustomFieldNumericIndex(), 18 - new ManiphestCustomFieldStringIndex(), 19 - )); 20 8 } 21 9 22 10 }
-3
src/applications/metamta/storage/PhabricatorMetaMTASchemaSpec.php
··· 4 4 extends PhabricatorConfigSchemaSpec { 5 5 6 6 public function buildSchemata() { 7 - $this->buildLiskSchemata('PhabricatorMetaMTADAO'); 8 - $this->buildLiskSchemata('PhabricatorSMSDAO'); 9 - 10 7 $this->buildEdgeSchemata( 11 8 new PhabricatorMetaMTAMail()); 12 9 }
-17
src/applications/nuance/storage/NuanceSchemaSpec.php
··· 4 4 extends PhabricatorConfigSchemaSpec { 5 5 6 6 public function buildSchemata() { 7 - $this->buildLiskSchemata('NuanceDAO'); 8 7 $this->buildEdgeSchemata(new NuanceItem()); 9 - 10 - $this->buildTransactionSchema( 11 - new NuanceItemTransaction(), 12 - new NuanceItemTransactionComment()); 13 - 14 - $this->buildTransactionSchema( 15 - new NuanceQueueTransaction(), 16 - new NuanceQueueTransactionComment()); 17 - 18 - $this->buildTransactionSchema( 19 - new NuanceRequestorTransaction(), 20 - new NuanceRequestorTransactionComment()); 21 - 22 - $this->buildTransactionSchema( 23 - new NuanceSourceTransaction(), 24 - new NuanceSourceTransactionComment()); 25 8 } 26 9 27 10 }
-10
src/applications/oauthserver/storage/PhabricatorOAuthSchemaSpec.php
··· 1 - <?php 2 - 3 - final class PhabricatorOAuthSchemaSpec 4 - extends PhabricatorConfigSchemaSpec { 5 - 6 - public function buildSchemata() { 7 - $this->buildLiskSchemata('PhabricatorOAuthServerDAO'); 8 - } 9 - 10 - }
-9
src/applications/owners/storage/PhabricatorOwnersSchemaSpec.php
··· 1 - <?php 2 - 3 - final class PhabricatorOwnersSchemaSpec extends PhabricatorConfigSchemaSpec { 4 - 5 - public function buildSchemata() { 6 - $this->buildLiskSchemata('PhabricatorOwnersDAO'); 7 - } 8 - 9 - }
-5
src/applications/passphrase/storage/PassphraseSchemaSpec.php
··· 4 4 extends PhabricatorConfigSchemaSpec { 5 5 6 6 public function buildSchemata() { 7 - $this->buildLiskSchemata('PassphraseDAO'); 8 - 9 - $this->buildTransactionSchema( 10 - new PassphraseCredentialTransaction()); 11 - 12 7 $this->buildEdgeSchemata(new PassphraseCredential()); 13 8 } 14 9
-6
src/applications/paste/storage/PhabricatorPasteSchemaSpec.php
··· 4 4 extends PhabricatorConfigSchemaSpec { 5 5 6 6 public function buildSchemata() { 7 - $this->buildLiskSchemata('PhabricatorPasteDAO'); 8 - 9 - $this->buildTransactionSchema( 10 - new PhabricatorPasteTransaction(), 11 - new PhabricatorPasteTransactionComment()); 12 - 13 7 $this->buildEdgeSchemata(new PhabricatorPaste()); 14 8 } 15 9
-12
src/applications/people/storage/PhabricatorUserSchemaSpec.php
··· 3 3 final class PhabricatorUserSchemaSpec extends PhabricatorConfigSchemaSpec { 4 4 5 5 public function buildSchemata() { 6 - $this->buildLiskSchemata('PhabricatorUserDAO'); 7 - 8 6 $this->buildEdgeSchemata(new PhabricatorUser()); 9 - 10 - $this->buildTransactionSchema( 11 - new PhabricatorUserTransaction()); 12 - 13 - $this->buildCustomFieldSchemata( 14 - new PhabricatorUserConfiguredCustomFieldStorage(), 15 - array( 16 - new PhabricatorUserCustomFieldNumericIndex(), 17 - new PhabricatorUserCustomFieldStringIndex(), 18 - )); 19 7 20 8 $this->buildRawSchema( 21 9 id(new PhabricatorUser())->getApplicationName(),
-1
src/applications/phame/storage/PhameSchemaSpec.php
··· 4 4 extends PhabricatorConfigSchemaSpec { 5 5 6 6 public function buildSchemata() { 7 - $this->buildLiskSchemata('PhameDAO'); 8 7 $this->buildEdgeSchemata(new PhameBlog()); 9 8 } 10 9
-11
src/applications/phlux/storage/PhluxSchemaSpec.php
··· 1 - <?php 2 - 3 - final class PhluxSchemaSpec 4 - extends PhabricatorConfigSchemaSpec { 5 - 6 - public function buildSchemata() { 7 - $this->buildLiskSchemata('PhluxDAO'); 8 - $this->buildTransactionSchema(new PhluxTransaction()); 9 - } 10 - 11 - }
-6
src/applications/pholio/storage/PholioSchemaSpec.php
··· 3 3 final class PholioSchemaSpec extends PhabricatorConfigSchemaSpec { 4 4 5 5 public function buildSchemata() { 6 - $this->buildLiskSchemata('PholioDAO'); 7 - 8 6 $this->buildEdgeSchemata(new PholioMock()); 9 - 10 - $this->buildTransactionSchema( 11 - new PholioTransaction(), 12 - new PholioTransactionComment()); 13 7 } 14 8 15 9 }
-8
src/applications/phortune/storage/PhortuneSchemaSpec.php
··· 3 3 final class PhortuneSchemaSpec extends PhabricatorConfigSchemaSpec { 4 4 5 5 public function buildSchemata() { 6 - $this->buildLiskSchemata('PhortuneDAO'); 7 - 8 6 $this->buildEdgeSchemata(new PhortuneAccount()); 9 - 10 - $this->buildTransactionSchema( 11 - new PhortuneAccountTransaction()); 12 - 13 - $this->buildTransactionSchema( 14 - new PhortuneProductTransaction()); 15 7 } 16 8 17 9 }
-10
src/applications/phpast/storage/PhabricatorXHPASTViewSchemaSpec.php
··· 1 - <?php 2 - 3 - final class PhabricatorXHPASTViewSchemaSpec 4 - extends PhabricatorConfigSchemaSpec { 5 - 6 - public function buildSchemata() { 7 - $this->buildLiskSchemata('PhabricatorXHPASTViewDAO'); 8 - } 9 - 10 - }
-2
src/applications/phragment/storage/PhragmentSchemaSpec.php
··· 3 3 final class PhragmentSchemaSpec extends PhabricatorConfigSchemaSpec { 4 4 5 5 public function buildSchemata() { 6 - $this->buildLiskSchemata('PhragmentDAO'); 7 - 8 6 $this->buildEdgeSchemata(new PhragmentFragment()); 9 7 } 10 8
-9
src/applications/phrequent/storage/PhrequentSchemaSpec.php
··· 1 - <?php 2 - 3 - final class PhrequentSchemaSpec extends PhabricatorConfigSchemaSpec { 4 - 5 - public function buildSchemata() { 6 - $this->buildLiskSchemata('PhrequentDAO'); 7 - } 8 - 9 - }
-2
src/applications/phriction/storage/PhrictionSchemaSpec.php
··· 3 3 final class PhrictionSchemaSpec extends PhabricatorConfigSchemaSpec { 4 4 5 5 public function buildSchemata() { 6 - $this->buildLiskSchemata('PhrictionDAO'); 7 - 8 6 $this->buildEdgeSchemata(new PhrictionDocument()); 9 7 } 10 8
-9
src/applications/policy/storage/PhabricatorPolicySchemaSpec.php
··· 1 - <?php 2 - 3 - final class PhabricatorPolicySchemaSpec extends PhabricatorConfigSchemaSpec { 4 - 5 - public function buildSchemata() { 6 - $this->buildLiskSchemata('PhabricatorPolicyDAO'); 7 - } 8 - 9 - }
-10
src/applications/ponder/storage/PonderSchemaSpec.php
··· 3 3 final class PonderSchemaSpec extends PhabricatorConfigSchemaSpec { 4 4 5 5 public function buildSchemata() { 6 - $this->buildLiskSchemata('PonderDAO'); 7 - 8 6 $this->buildEdgeSchemata(new PonderQuestion()); 9 - 10 - $this->buildTransactionSchema( 11 - new PonderQuestionTransaction(), 12 - new PonderQuestionTransactionComment()); 13 - 14 - $this->buildTransactionSchema( 15 - new PonderAnswerTransaction(), 16 - new PonderAnswerTransactionComment()); 17 7 } 18 8 19 9 }
-15
src/applications/project/storage/PhabricatorProjectSchemaSpec.php
··· 3 3 final class PhabricatorProjectSchemaSpec extends PhabricatorConfigSchemaSpec { 4 4 5 5 public function buildSchemata() { 6 - $this->buildLiskSchemata('PhabricatorProjectDAO'); 7 - 8 6 $this->buildEdgeSchemata(new PhabricatorProject()); 9 - 10 - $this->buildTransactionSchema( 11 - new PhabricatorProjectTransaction()); 12 - 13 - $this->buildCustomFieldSchemata( 14 - new PhabricatorProjectCustomFieldStorage(), 15 - array( 16 - new PhabricatorProjectCustomFieldNumericIndex(), 17 - new PhabricatorProjectCustomFieldStringIndex(), 18 - )); 19 - 20 - $this->buildTransactionSchema( 21 - new PhabricatorProjectColumnTransaction()); 22 7 23 8 $this->buildRawSchema( 24 9 id(new PhabricatorProject())->getApplicationName(),
-20
src/applications/releeph/storage/ReleephSchemaSpec.php
··· 1 - <?php 2 - 3 - final class ReleephSchemaSpec 4 - extends PhabricatorConfigSchemaSpec { 5 - 6 - public function buildSchemata() { 7 - $this->buildLiskSchemata('ReleephDAO'); 8 - 9 - $this->buildTransactionSchema( 10 - new ReleephProductTransaction()); 11 - 12 - $this->buildTransactionSchema( 13 - new ReleephBranchTransaction()); 14 - 15 - $this->buildTransactionSchema( 16 - new ReleephRequestTransaction(), 17 - new ReleephRequestTransactionComment()); 18 - } 19 - 20 - }
-5
src/applications/repository/storage/PhabricatorRepositorySchemaSpec.php
··· 4 4 extends PhabricatorConfigSchemaSpec { 5 5 6 6 public function buildSchemata() { 7 - $this->buildLiskSchemata('PhabricatorRepositoryDAO'); 8 - 9 7 $this->buildEdgeSchemata(new PhabricatorRepository()); 10 - 11 - $this->buildTransactionSchema( 12 - new PhabricatorRepositoryTransaction()); 13 8 14 9 $this->buildRawSchema( 15 10 id(new PhabricatorRepository())->getApplicationName(),
-9
src/applications/search/storage/PhabricatorSearchSchemaSpec.php
··· 1 - <?php 2 - 3 - final class PhabricatorSearchSchemaSpec extends PhabricatorConfigSchemaSpec { 4 - 5 - public function buildSchemata() { 6 - $this->buildLiskSchemata('PhabricatorSearchDAO'); 7 - } 8 - 9 - }
-4
src/applications/slowvote/storage/PhabricatorSlowvoteSchemaSpec.php
··· 4 4 extends PhabricatorConfigSchemaSpec { 5 5 6 6 public function buildSchemata() { 7 - $this->buildLiskSchemata('PhabricatorSlowvoteDAO'); 8 7 $this->buildEdgeSchemata(new PhabricatorSlowvotePoll()); 9 - $this->buildTransactionSchema( 10 - new PhabricatorSlowvoteTransaction(), 11 - new PhabricatorSlowvoteTransactionComment()); 12 8 } 13 9 14 10 }
-10
src/applications/system/storage/PhabricatorSystemSchemaSpec.php
··· 1 - <?php 2 - 3 - final class PhabricatorSystemSchemaSpec 4 - extends PhabricatorConfigSchemaSpec { 5 - 6 - public function buildSchemata() { 7 - $this->buildLiskSchemata('PhabricatorSystemDAO'); 8 - } 9 - 10 - }
-10
src/applications/tokens/storage/PhabricatorTokenSchemaSpec.php
··· 1 - <?php 2 - 3 - final class PhabricatorTokenSchemaSpec 4 - extends PhabricatorConfigSchemaSpec { 5 - 6 - public function buildSchemata() { 7 - $this->buildLiskSchemata('PhabricatorTokenDAO'); 8 - } 9 - 10 - }
-10
src/applications/xhprof/storage/PhabricatorXHProfSchemaSpec.php
··· 1 - <?php 2 - 3 - final class PhabricatorXHProfSchemaSpec 4 - extends PhabricatorConfigSchemaSpec { 5 - 6 - public function buildSchemata() { 7 - $this->buildLiskSchemata('PhabricatorXHProfDAO'); 8 - } 9 - 10 - }
-11
src/infrastructure/daemon/workers/storage/PhabricatorWorkerSchemaSpec.php
··· 1 - <?php 2 - 3 - final class PhabricatorWorkerSchemaSpec 4 - extends PhabricatorConfigSchemaSpec { 5 - 6 - public function buildSchemata() { 7 - $this->buildLiskSchemata('PhabricatorWorkerDAO'); 8 - $this->buildCounterSchema(new PhabricatorWorkerActiveTask()); 9 - } 10 - 11 - }