Skip to content
ferventcoder edited this page Nov 27, 2011 · 7 revisions

Everytime Scripts

Everytime scripts are scripts that are run everytime RH runs, regardless of changes.

If you name your file with .EVERYTIME., roundhouse will run that file everytime, regardless of changes. In example, if you name a file Something.EVERYTIME.sql or EVERYTIME.something.sql, roundhouse will run that file every migration.

Why would I use this?

This is handy when you are using a script to drop and insert data or you need certain scripts to run everytime (say they do some sort of autowiring).

Where not to use

  • The up folder - This folder is meant for scripts that run only once.
  • The permissions folder - these scripts are already everytime scripts.

Folders

  • Permissions

Every file in the permissions folder is run every time RH runs. This catches autowiring of permissions.

Related

  • There is a switch RunAllAnyTimeScripts that will run all anytime scripts everytime, regardless of changes.