Skip to content

Instantly share code, notes, and snippets.

@mickadoo
Created June 21, 2018 15:11
Show Gist options
  • Save mickadoo/a81d0fb140d01dab07207794588a44ba to your computer and use it in GitHub Desktop.
Save mickadoo/a81d0fb140d01dab07207794588a44ba to your computer and use it in GitHub Desktop.
Upgraders Spec
function upgrade_174() {
  $this->runAllClassesInDirectory('Upgrade_174');
}
class Upgrade_174_SetDrupalVariable implements UpgraderInterface {
 
  public function upgrade() {
    drush_vset('foo', 'bar');
  }

}

Directory Structure

  • Upgrade_173
    • Upgrade_173_CreateOptionValue.php
  • Upgrade_174
    • Upgrade_174_SetDrupalVariable.php
    • Upgrade_174_DeleteLocationType.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment