How do I set an "overridden" strongarm-ed variable to "default" from drush (or sql-cli)?

I introduced a variable
drush vset myvar test

and then added to our dev/stage/prod strongarm.inc files, like this from prod:

$strongarm = new stdClass;
$strongarm->disabled = FALSE;
$strongarm->api_version = 1;
$strongarm->name = 'myvar';
$strongarm->value = 'live';
$export['myvar'] = $strongarm;

And then I think it was inadvertently overridden on stage before it was pushed live, so it does not respect the value in strongarm.inc. All admin access is disabled on production, so I can't get at it there. I can set it with drush vset, but everytime we do a release, it reverts to the overridden value.

Thanks...

Comments

euk’s picture

Hi!

#1 make sure your variable is declared in the info file.
#2 delete the variable "drush vdel " - Strongarm will pick up your values from code.
#3 clear cache - "drush cc all"

Cheers!

jiv_e’s picture

Issue summary: View changes
Status: Active » Closed (fixed)

No activity. Closing...