Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Archiving older scripts #130

Open
awalls opened this issue Dec 4, 2017 · 2 comments
Open

Archiving older scripts #130

awalls opened this issue Dec 4, 2017 · 2 comments

Comments

@awalls
Copy link

awalls commented Dec 4, 2017

Over the years we have several 100 migration scripts which will probably never be run again but which we'd like to keep for reference. Is there a best practice for dealing with older scripts? For example is it as simple as just pushing these to an archive folder?

@davedevelopment
Copy link
Owner

Moving them to a folder would be one way to do it. You could then tell phpmig where to find them, so the status command still looks sensible, see https://github.com/davedevelopment/phpmig#multi-path-migrations

I work on a single deployment product, so I feel fine deleting the migration files and the migration records, and then rely on version control if I ever want to go back to them.

@awalls
Copy link
Author

awalls commented Dec 8, 2017

Cheers Dave. Just wanted to see if there was a "best practice" way of dealing with this. Deleting them is probably best as less files for the script to try and work it's way through. Like you said they can always be pulled from version control if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants