What Are Database Migrations? | Database Migrations in Node
HTML-код
- Опубликовано: 5 янв 2021
- In this video I talk about what database migrations are, what database migrations are good for, and finally how to achieve database migrations in a nodejs project using a library called knex.
--SUPPORT THE CHANNEL--
If you would like to support the channel you can use the below link.
I would like to stress that while it would be greatly appreciated, in no way is this required!
link: www.paypal.com/paypalme/codin... - Наука
I love love love the speed at which you talk. All others talk too slowly. Takes forever to get to the point. THANK YOU!
watching at 0.5x keep it up
This is absolutely fantastic. Great, lively speed of delivery, and easy to understand, with comprehensible use case scenarios. Many thanks.
Chaim, you are the only one who always helps me in the so deep combinations of things where resources lack. Thanks as always
You are most welcome
When Eminem teaches coding. hahah
Awesome tutorial. Your delivery speed is perfect.
Thank you very much, waiting more videos from you!
I was struggling with migrations in knex, this tutorial really helped me to understand the migrations. Thank you so much !!!
Glad it helped!
Even not being a native speaker I could understand everything, nice job!
dude, you are totally underrated. Even though you are explaining too fast i can understand everything you say😲😳
Thanks for marking this video ..
Great video, thanks
Wow this video is great!
I checked whether I was watching in 2X :P
hahahaa
me too!
finally! appropriate speedflow.
nice explanation. I had to check if I was playing it at 1.5x speed :-)
What could be other alternatives to Knex library?
Any ORM that supports migrations.
thank you ben saphiro
This is the first video tutorial, I didn't have to set the speed to 1.5X :D
Jesus you talk so fast. But i understand well haha thsnks man your video was good
what is the differences between knex and db-migrate?
By default 1.5x
With migrations
What about removing a column from a table?
Should I remove it on the up and down function?
exports.up = function (knex) {
return knex.schema.table('user', (table) => {
table.dropColumn('fullname');
});
};
exports.down = function (knex) {
knex.schema.table('user', (table) => {
table.dropColumn('fullname');
});
};
Great question! You want the down to do the opposite of the up, so if the up is removing the column, I would make the down add it back. I like to think of it as an undo.
Great contents! But too fast for non natives english speakers like me... 😐
semi bald eminem is lit, thank you 😀
I actually had to check if I was playing at 1.5x speed. Man, you speak quickly. Otherwise good video
Nice explanation but it seems like this guy was working on Texas auctions in the past )))
Had to watch at 1.5x speed. You're not even talking at rap god's fast verse-like speed. If i was subscribed I would unsubscribe rn.
/s
jewish ?
not shot
NO WAY
yes