Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Create Repair and Rebuild command #52

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

[WIP] Create Repair and Rebuild command #52

wants to merge 1 commit into from

Conversation

jcsmorais
Copy link
Member

Implement this command like we had on 1.0 version.

insulin help core-quick-repair
Repairs and rebuilds DB, Extensions, Vardefs, Sugar Dashlets etc..
Examples:
 insulin core-quick-repair Repairs and rebuilds DB, Extensions, Vardefs, Sugar Dashlets etc..
 insulin core-quick-repair --clearVardefs Repairs and rebuilds Vardefs for all modules.
 insulin core-quick-repair --modules=Account --clearVardefs Repairs and rebuilds Vardefs for Account module.
Options:
 --modules A comma delimited list of module names, or bean names.
 --clearTpls Clear Smarty templates from cache. 
 --clearJsFiles Clear Javascript files.
 --clearDashlets Clear Sugar Dashlet files.
 --clearThemeCache Clear Theme Cache. 
 --clearVardefs Clear Vardefs from cache. 
 --clearJsLangFiles Clear Javascript Language files from cache.
 --execute Automatically applies changes between database and vardefs. 
 --clearSearchCache Clear Unified Search Cache. 
 --clearPDFFontCache Clear PDF Font Cache File.
 --rebuildAuditTables Rebuild Audit Tables.
 --clearAll Clear all of the above (default). 
 --rebuildExtensions Rebuild Extensions. 
 --repairDatabase Syncs Database tables with vardefs. 
 --repairRoles Repairs Roles.
Aliases: repair
insulin core-quick-repair
Repair and Rebuild successfully. [success]
Changes found between database and vardefs, what do you want to do?
 [0] : Cancel 
 [1] : Print changes 
 [2] : Apply all changes 
 [3] : Apply changes one by one 
1
ALTER TABLE leads add column do_not_call bool DEFAULT '0' NULL , add column birthdate date NULL;
ALTER TABLE accounts add column skype varchar(100) NULL;
What do you want to do?
 [0] : Cancel 
 [1] : Apply all changes 
 [2] : Apply changes one by one 
1
Database changes applied.

@alias-mac
Copy link
Member Author

We should also create the documentation for this command using the template (https://github.com/insulin/cli/wiki/Command-Specification-Template).

@ghost ghost assigned jcsmorais Dec 12, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants