first steps toward supporting lock and note

This commit is contained in:
2019-08-19 17:16:11 -04:00
parent 3534930f22
commit b27c080d18
3 changed files with 10 additions and 7 deletions

View File

@ -60,14 +60,13 @@ class CRM_AnnualGrantBudgets_Upgrader extends CRM_AnnualGrantBudgets_Upgrader_Ba
*
* @return TRUE on success
* @throws Exception
*
public function upgrade_4200() {
$this->ctx->log->info('Applying update 4200');
CRM_Core_DAO::executeQuery('UPDATE foo SET bar = "whiz"');
CRM_Core_DAO::executeQuery('DELETE FROM bang WHERE willy = wonka(2)');
*/
public function upgrade_1000() {
$this->ctx->log->info('Add notes and lock field to annual grant budget');
\CRM_Upgrade_Incremental_Base::addColumn($this->ctx, 'civicrm_grant_budget', 'note', "varchar(255) COMMENT 'Note'");
\CRM_Upgrade_Incremental_Base::addColumn($this->ctx, 'civicrm_grant_budget', 'is_reserved', "tinyint(4) DEFAULT 0 COMMENT 'Is this grant budget locked?'");
return TRUE;
} // */
}
/**
* Example: Run an external SQL script.