forked from CiviWare/org.agbu.annualgrantbudgets
first steps toward supporting lock and note
This commit is contained in:
@ -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.
|
||||
|
Reference in New Issue
Block a user