I have a D7 question. My latest site change involves using the Path Redirect Import module and
drush path-redirect-import to bulk-create a bunch of URL redirects from a CSV file. It works fine in dev on my Linux box and I need to deploy it to test on Pantheon.
I'm striving to do code-based deployments, so I use Features and a
MYSITE.install module with
1) Is it a best practice or am I misguided in trying to code a
hook_update_n() to perform the DB update? Code-based development aims for recording every developer-initiated site change in code, right? Or are there cases where you don't commit something to code?
2) If the answer is "yes, you should do this in code", then I see that the
drush_path_redirect_import function simply processes command-line options and executes:
$result = path_redirect_import_read_file($file, $options);
so I should simply do the same in my