Changed command descriptions.
This commit is contained in:
@@ -27,7 +27,9 @@
|
|||||||
|
|
||||||
CLI::taskName('info');
|
CLI::taskName('info');
|
||||||
CLI::taskDescription(<<<EOT
|
CLI::taskDescription(<<<EOT
|
||||||
Print information about the current system and specified workspaces.
|
Print information about the current system and any specified workspaces.
|
||||||
|
|
||||||
|
If no workspace is specified, show information about all available workspaces
|
||||||
EOT
|
EOT
|
||||||
);
|
);
|
||||||
CLI::taskArg('workspace-name', true, true);
|
CLI::taskArg('workspace-name', true, true);
|
||||||
@@ -37,15 +39,15 @@ CLI::taskName('workspace-backup');
|
|||||||
CLI::taskDescription(<<<EOT
|
CLI::taskDescription(<<<EOT
|
||||||
Backup the specified workspace to an archive.
|
Backup the specified workspace to an archive.
|
||||||
|
|
||||||
BACKUP-NAME is the backup filename. If it contains slashes, it will be
|
BACKUP-FILE is the backup filename. If it contains slashes, it will be
|
||||||
treated as a filename, either absolute or relative. Otherwise it will be
|
treated as a path and filename, either absolute or relative. Otherwise, it
|
||||||
treated as a filename inside the backups directory in the 'shared' folder.
|
will be treated as a filename inside the 'shared/backups' directory.
|
||||||
If no BACKUP-NAME is specified, it will use the workspace name as the
|
If no BACKUP-FILE is specified, it will use the workspace name as the
|
||||||
filename.
|
filename.
|
||||||
|
|
||||||
A backup archive will contain all information about the specified workspace
|
A backup archive will contain all information about the specified workspace
|
||||||
so that it can be restored later. A database dump will be created and all
|
so that it can be restored later. The archive includes a database dump and
|
||||||
the workspace files will be included in the archive.
|
all the workspace files.
|
||||||
EOT
|
EOT
|
||||||
);
|
);
|
||||||
CLI::taskArg('workspace', false);
|
CLI::taskArg('workspace', false);
|
||||||
@@ -56,12 +58,12 @@ CLI::taskName('workspace-restore');
|
|||||||
CLI::taskDescription(<<<EOT
|
CLI::taskDescription(<<<EOT
|
||||||
Restore a workspace from a backup.
|
Restore a workspace from a backup.
|
||||||
|
|
||||||
BACKUP-NAME is the backup filename. If it contains slashes, it will be
|
BACKUP-FILE is the backup filename. If it contains slashes, it will be
|
||||||
treated as a filename, either absolute or relative. Otherwise it will be
|
treated as a path and filename, either absolute or relative. Otherwise, it
|
||||||
treated as a filename inside the backups directory in the 'shared' folder.
|
will be treated as a filename inside the 'shared/backups' directory.
|
||||||
|
|
||||||
If WORKSPACE is specified, it will be used as the workspace to restore to,
|
Specify the WORKSPACE to restore to a different workspace name. Otherwise,
|
||||||
otherwise the workspace will be restored using the same name as before.
|
it will restore to the same workspace name as the original backup.
|
||||||
EOT
|
EOT
|
||||||
);
|
);
|
||||||
CLI::taskArg('backup-file', false);
|
CLI::taskArg('backup-file', false);
|
||||||
@@ -70,16 +72,16 @@ CLI::taskRun(run_workspace_restore);
|
|||||||
|
|
||||||
CLI::taskName('cacheview-repair');
|
CLI::taskName('cacheview-repair');
|
||||||
CLI::taskDescription(<<<EOT
|
CLI::taskDescription(<<<EOT
|
||||||
Create and populate APP_CACHE_VIEW
|
Create and populate the APP_CACHE_VIEW table
|
||||||
|
|
||||||
You can specify as many workspaces as you want and if no workspace is
|
Specify the workspaces whose cases cache should be repaired. If no workspace
|
||||||
specified, it will run the upgrade on all available workspaces.
|
is specified, then the cases will be repaired on all available workspaces.
|
||||||
|
|
||||||
In order to improve the performance, ProcessMaker includes a cache of cases
|
In order to improve the performance, ProcessMaker includes a cache of cases
|
||||||
in the table APP_CACHE_VIEW. This table must be in sync with the database
|
in the table APP_CACHE_VIEW. This table must be in sync with the database
|
||||||
to present the right information in the inbox. This command will create the
|
to present the correct information in the cases inbox. This command will
|
||||||
table and populate it with the right information. You only need to use this
|
create the table and populate it with the right information. This only needs
|
||||||
command after upgrading or if the inbox is out of sync.
|
to be used after upgrading ProcessMaker or if the cases inbox is out of sync.
|
||||||
EOT
|
EOT
|
||||||
);
|
);
|
||||||
CLI::taskArg('workspace', true, true);
|
CLI::taskArg('workspace', true, true);
|
||||||
@@ -87,15 +89,16 @@ CLI::taskRun(run_cacheview_upgrade);
|
|||||||
|
|
||||||
CLI::taskName('database-upgrade');
|
CLI::taskName('database-upgrade');
|
||||||
CLI::taskDescription(<<<EOT
|
CLI::taskDescription(<<<EOT
|
||||||
Repair the database schema to the latest version
|
Upgrade or repair the database schema to match the latest version
|
||||||
|
|
||||||
You can specify as many workspaces as you want and if no workspace is
|
Specify the workspaces whose database schema should be upgraded or repaired.
|
||||||
specified, it will run the upgrade on all available workspaces.
|
If no workspace is specified, then the database schema will be upgraded or
|
||||||
|
repaired on all available workspaces.
|
||||||
|
|
||||||
This command will read the system schema and attempt to modify the workspaces
|
This command will read the system schema and attempt to modify the workspaces
|
||||||
tables to this new schema. This is useful after an upgrade when the workspace
|
tables to match this new schema. Use this command to fix corrupted database
|
||||||
database is not upgraded or when the database does not contain the right
|
schemas or after ProcessMaker has been upgraded, so the database schemas will
|
||||||
schema.
|
changed to match the new ProcessMaker code.
|
||||||
EOT
|
EOT
|
||||||
);
|
);
|
||||||
CLI::taskArg('workspace', true, true);
|
CLI::taskArg('workspace', true, true);
|
||||||
@@ -103,13 +106,14 @@ CLI::taskRun(run_database_upgrade);
|
|||||||
|
|
||||||
CLI::taskName('plugins-database-upgrade');
|
CLI::taskName('plugins-database-upgrade');
|
||||||
CLI::taskDescription(<<<EOT
|
CLI::taskDescription(<<<EOT
|
||||||
Repair the database schema to the latest version
|
Upgrade or repair the database schema for plugins to match the latest version
|
||||||
|
|
||||||
You can specify as many workspaces as you want and if no workspace is
|
Specify the workspaces whose database schema should be upgraded or repaired
|
||||||
specified, it will run the upgrade on all available workspaces.
|
for plugins. If no workspace is specified, then the database schema will be
|
||||||
|
upgraded or repaired on all available workspaces.
|
||||||
|
|
||||||
The same as database-upgrade but works with schemas provided by plugins.
|
The same as database-upgrade but works with schemas provided by plugins.
|
||||||
This is useful if there are installed plugins that include database schemas.
|
This is useful if there are installed plugins that include database schemas.
|
||||||
EOT
|
EOT
|
||||||
);
|
);
|
||||||
CLI::taskArg('workspace', true, true);
|
CLI::taskArg('workspace', true, true);
|
||||||
@@ -119,13 +123,15 @@ CLI::taskName('workspace-upgrade');
|
|||||||
CLI::taskDescription(<<<EOT
|
CLI::taskDescription(<<<EOT
|
||||||
Upgrade the workspace(s) specified.
|
Upgrade the workspace(s) specified.
|
||||||
|
|
||||||
If no workspace is specified, the command will be run in all workspaces. You
|
If no workspace is specified, the command will be run in all workspaces. More
|
||||||
can specify more then one workspace.
|
than one workspace can be specified.
|
||||||
|
|
||||||
This command is a shortcut to execute all upgrade commands in this workspace.
|
This command is a shortcut to execute all upgrade commands for workspaces.
|
||||||
Upgrading a workspace will make it corresponds to this version of
|
Upgrading a workspace will make it correspond to the current version of
|
||||||
ProcessMaker. Use this command to upgrade workspaces individually, otherwise
|
ProcessMaker.
|
||||||
use the upgrade command to upgrade the entire system.
|
|
||||||
|
Use this command to upgrade workspaces individually, otherwise use the
|
||||||
|
upgrade command to upgrade the entire system.
|
||||||
EOT
|
EOT
|
||||||
);
|
);
|
||||||
CLI::taskArg('workspace-name', true, true);
|
CLI::taskArg('workspace-name', true, true);
|
||||||
@@ -133,13 +139,14 @@ CLI::taskRun(run_workspace_upgrade);
|
|||||||
|
|
||||||
CLI::taskName('translation-repair');
|
CLI::taskName('translation-repair');
|
||||||
CLI::taskDescription(<<<EOT
|
CLI::taskDescription(<<<EOT
|
||||||
Upgrade translations for the specified workspace(s).
|
Upgrade or repair translations for the specified workspace(s).
|
||||||
|
|
||||||
If no workspace is specified, the command will be run in all workspaces. You
|
|
||||||
can specify more then one workspace.
|
|
||||||
|
|
||||||
|
If no workspace is specified, the command will be run in all workspaces. More
|
||||||
|
than one workspace can be specified.
|
||||||
|
|
||||||
This command will go through each language installed in ProcessMaker and
|
This command will go through each language installed in ProcessMaker and
|
||||||
update this workspace translations to match the installed translations.
|
update this workspace translations to match the current version of
|
||||||
|
ProcessMaker.
|
||||||
EOT
|
EOT
|
||||||
);
|
);
|
||||||
CLI::taskArg('workspace-name', true, true);
|
CLI::taskArg('workspace-name', true, true);
|
||||||
@@ -150,7 +157,7 @@ CLI::taskRun(run_translation_upgrade);
|
|||||||
* access public
|
* access public
|
||||||
*/
|
*/
|
||||||
function run_info($args, $opts) {
|
function run_info($args, $opts) {
|
||||||
$workspaces = get_workspaces_from_args($args, false);
|
$workspaces = get_workspaces_from_args($args);
|
||||||
workspaceTools::printSysInfo();
|
workspaceTools::printSysInfo();
|
||||||
foreach ($workspaces as $workspace) {
|
foreach ($workspaces as $workspace) {
|
||||||
echo "\n";
|
echo "\n";
|
||||||
|
|||||||
@@ -254,7 +254,7 @@ class workspaceTools {
|
|||||||
/**
|
/**
|
||||||
* Upgrade this workspace translations from all avaliable languages.
|
* Upgrade this workspace translations from all avaliable languages.
|
||||||
*
|
*
|
||||||
* @param bool $updateXml if true, update the xmlforms
|
* @param bool $first if updating a series of workspace, true if the first
|
||||||
*/
|
*/
|
||||||
public function upgradeTranslation($first = true) {
|
public function upgradeTranslation($first = true) {
|
||||||
$this->initPropel(true);
|
$this->initPropel(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user