Created
February 3, 2016 23:27
-
-
Save dasegn/e02dea1ee5c57b1c6b1b to your computer and use it in GitHub Desktop.
Disable a Drupal 7 theme in MySQL DB
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Update theme variables | |
UPDATE variable SET value='s:7:"garland"' WHERE name = 'theme_default'; | |
UPDATE system SET status=1 WHERE name = 'garland'; | |
UPDATE system SET status=0 WHERE name = 'other_theme'; | |
# Truncate cache tables | |
TRUNCATE cache; | |
TRUNCATE cache_bootstrap; | |
TRUNCATE cache_block; | |
# In settings.php | |
# $conf['theme_default'] = 'garland'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment