-
-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
✨ knex-migrator v2 #7605
✨ knex-migrator v2 #7605
Conversation
e66c7fb
to
2bf64ce
Compare
This is ready for a review. Happy about any feedback 🕵🏻 |
I have reviewed this and TryGhost/knex-migrator#11, although that PR broke GitHub for me 😂 This is all looking amazing 🎉 , the code is maturing really nicely and I'm excited about how much this solution has evolved and grown up 👍 I especially like the details around being able to exclude some migrations & the flexibility in the commands, I think this is going to help us to move a lot faster! 💯 I have only 3, small pieces of feedback.
|
Agreed!
Will look into your comment in the PR TryGhost/knex-migrator#11
Yeah good feedback. |
fc1f9d9
to
25be625
Compare
Added knex-migrator 0.1.1 We have 2 tasks left in the big migration task:
|
660e3d6
to
9f408dd
Compare
Travis is red, but it does not show any logs right now. Maybe a bug. Will try to rebuild tomorrow. |
Ok travis is green now! |
[ci skip]
- hooks - 1.0 [ci skip]
- remove when released [ci skip]
- please read the comments in the commit
- fix a single test to ensure we catch the error
- added my keyword: kate-migrations - i will go over all TODO's when removing the old migrations code
44cbb32
to
86ba7c5
Compare
Please review for |
* 🎨 knex-migrator reset [ci skip] * ✨ add migration example - hooks - 1.0 [ci skip] * 🛠 knex-migrator tarball - remove when released [ci skip] * 🎨 jscs/jshint * 🕵🏻 do not drop the database connection when running tests - please read the comments in the commit * 🔥 remove example migration * 🛠 knex-migrator 0.1.0 * 🛠 knex-migrator 0.1.1 - fix a single test to ensure we catch the error * 🛠 knex-migrator 0.1.2 * 🎨 make tests green - added my keyword: kate-migrations - i will go over all TODO's when removing the old migrations code * 🛠 knex-migrator update * 🛠 knex-migrator 0.2.0
refs #7489
After this PR there is only one TODO left: see #7489.
Please see the PR in
knex-migrator
repo:See TryGhost/knex-migrator#11
This PR shows the usage of running migrations within Ghost. (added an example migration)
This PR integrates the usage of resetting the database within Ghost.
You can checkout this branch and play with it.
current versioning
hooks
We can hook into the whole process of knex-migrator.
For example:
Before migrations start, initialise the models.
After migrations, destroy database connection.
TODO