-
Notifications
You must be signed in to change notification settings - Fork 245
Everytimescripts
ferventcoder edited this page Nov 27, 2011
·
7 revisions
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.
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).
- The
up
folder - This folder is meant for scripts that run only once. - The
permissions
folder - these scripts are already everytime scripts.
- Permissions
Every file in the permissions folder is run every time RH runs. This catches autowiring of permissions.
- There is a switch RunAllAnyTimeScripts that will run all anytime scripts everytime, regardless of changes.