22 Nest JS adding columns to a database table TypeORM using migrations

preview_player
Показать описание
#nodejs #nestjs #javascript

In this video, we are going to look at adding one more column to our user table for roles.

We will see how we can add a new attribute to our user entity, generate a new migration which will have the sequel script to add that column and how we can also use migration revert to revert back as well.

You can find me on:
Рекомендации по теме
Комментарии
Автор

How to expand our enum type? We want to add 'superAdmin' role

Yurii_Georgin
Автор

doesn't work with the latest version

pelaoinfo
join shbcf.ru