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

Add more features #97

Open
ravenjohn opened this issue Jan 24, 2017 · 2 comments
Open

Add more features #97

ravenjohn opened this issue Jan 24, 2017 · 2 comments

Comments

@ravenjohn
Copy link
Contributor

@ravenjohn ravenjohn changed the title Add more feautures Add more features Jan 24, 2017
@ravenjohn
Copy link
Contributor Author

node-db-migrate is not good for migrations written in sql files. it produces a lot of scripts.

@ravenjohn
Copy link
Contributor Author

try creating a custom migration tool where all necessary data is on the migration file name. example:

./migrate create add-category-table

will create:
database/migrations/20160206-add-category-table-up.sql
database/migrations/20160206-add-category-table-down.sql

./migrate up add-category-table # will run a specific migration
./migrate up 20160206 # will run all migrations before or equal to the date

Consider including the time to handle multiple migrations in 1 day.

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

1 participant