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.
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
I was struggling with migrations in knex, this tutorial really helped me to understand the migrations. Thank you so much !!!
Glad it helped!
When Eminem teaches coding. hahah
dude, you are totally underrated. Even though you are explaining too fast i can understand everything you say😲😳
Even not being a native speaker I could understand everything, nice job!
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.
I checked whether I was watching in 2X :P
hahahaa
me too!
Awesome tutorial. Your delivery speed is perfect.
Thank you very much, waiting more videos from you!
finally! appropriate speedflow.
Thanks for marking this video ..
This is the first video tutorial, I didn't have to set the speed to 1.5X :D
what is the differences between knex and db-migrate?
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 video, thanks
By default 1.5x
Wow this video is great!
I actually had to check if I was playing at 1.5x speed. Man, you speak quickly. Otherwise good video
Great contents! But too fast for non natives english speakers like me... 😐
thank you ben saphiro
Jesus you talk so fast. But i understand well haha thsnks man your video was good
Nice explanation but it seems like this guy was working on Texas auctions in the past )))
semi bald eminem is lit, thank you 😀
bro is speaking eminem
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
You are too fast...
jewish ?
not shot
NO WAY
yes