Project

General

Profile

Actions

DrushTricks » History » Revision 5

« Previous | Revision 5/18 (diff) | Next »
Andreas Kohlbecker, 09/03/2013 09:30 PM


Useful Drush tricks

What is drush? see here :http://drush.ws/about

All tips and tricks account to Drupal 7!


Template for new entries:

admin/foo/bar

  • drush command: drush lorem ipsum val_1

  • values:

    • val_1: foo
    • val_2: bar

}}}


error level

  • admin menu equivalent: admin/config/development/logging

  • drush command: drush vset -y error_level <value>

  • values:

    • 0: none
    • 1: errors and warnings
    • 2: all

clean urls

  • admin menu equivalent: admin/config/development/logging

  • drush command: drush vset clean_url -y <val>

  • values:

    • 0: off
    • 1: on

maintenance mode

  • admin menu equivalent: admin/config/development/maintenance

  • drush command: drush vset -y maintenance_mode <val>

  • values:

    • 0: off
    • 1: on

reset cdm_dataportal schema version

This allows running an update again even if the update function already has been executed in the past.

  • drush command: drush sql-query --db-prefix "UPDATE {system} SET schema_version=<version> WHERE name='cdm_dataportal' and type='module';"

  • : the schema version to reset to, e.g.: 7003

Updated by Andreas Kohlbecker over 10 years ago · 5 revisions