Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Went to my site and bam - None of my CSS loaded. In SSH it seems my sub-theme directory was deleted.
This happened right after I ran drush --no-backup up -y
Gladly I didn't do any signicant changes to the files today, yet, this is indeed dangerous.
I suggest making sure any Basic updates won't delete any additional non-native content.
Even thought it's a starter theme and not a base --- An option to use it as such should be given and auto deletion should be removed.
Comments
Comment #2
joelpittetSorry we can't do that. That is part of how drush works and for people who have copied and renamed it with
drush basic-install
, may want to keep the originalbasic
up to date to compare and update their theme with the changes in to basic.Comment #3
Benia CreditAttribution: Benia commentedOh, I seem to have had a mistake here - I putted the subtheme inside the theme's folder, instead alongside.
http://drupal.stackexchange.com/questions/214550/drush-up-deletes-sub-th...
Comment #4
leahtard CreditAttribution: leahtard at The Jibe commentedHey Benia,
Here is a good docs page: https://www.drupal.org/docs/8/theming-drupal-8/creating-a-drupal-8-sub-t...
Cheers, Leah
Comment #5
joelpittetThanks for the detail on the problem. Maybe you'd like to contribute to a small README change to help support that idea to not put the sub theme in the base theme/original themes directory?
Comment #6
Benia CreditAttribution: Benia commentedYes. Under the Installation chapter, I would suggest adding a third chapter: