Dashboards - add ability to install dashboard as home
Summary: See title. Adds PhabricatorDashboardInstall data object which scopes installs to objectPHID + applicationClass. This is because we already have a collision for user home pages and user profiles. Assume only one dashboard per objectPHID + applicationClass though at the database level. Fixes T5076. Test Plan: From dashboard view, installed a dashboard - success! Went back to dashboard view and uninstalled it! Reviewers: chad, epriestley Reviewed By: epriestley Subscribers: epriestley, Korvin Maniphest Tasks: T5076 Differential Revision: https://secure.phabricator.com/D9206
This commit is contained in:
10
resources/sql/autopatches/20140519.dashboardinstall.sql
Normal file
10
resources/sql/autopatches/20140519.dashboardinstall.sql
Normal file
@@ -0,0 +1,10 @@
|
||||
CREATE TABLE {$NAMESPACE}_dashboard.dashboard_install (
|
||||
id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
||||
installerPHID VARCHAR(64) NOT NULL COLLATE utf8_bin,
|
||||
objectPHID VARCHAR(64) NOT NULL COLLATE utf8_bin,
|
||||
applicationClass VARCHAR(64) NOT NULL COLLATE utf8_bin,
|
||||
dashboardPHID VARCHAR(64) NOT NULL COLLATE utf8_bin,
|
||||
dateCreated INT UNSIGNED NOT NULL,
|
||||
dateModified INT UNSIGNED NOT NULL,
|
||||
UNIQUE KEY (objectPHID, applicationClass)
|
||||
) ENGINE=InnoDB, COLLATE utf8_general_ci;
|
||||
Reference in New Issue
Block a user