Skip to content

It is a project to study NodeJS technology together with SQL, which would be a relational database, where PostgresSQL was used in the project in question.

Notifications You must be signed in to change notification settings

miguelitodev/sql-nodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Notes about Sequelize

Quero criar um banco

    $ yarn sequelize db:create

Quero criar uma migration

    $ yarn sequelize migration:create --name=migration_name

Quero enviar as alterações nas migrations

    $ yarn sequelize db:migrate

Quero remover a última migration para att algo (PRODUÇÃO)

Caso esteja em produção, para att algo, tem que criar outra migration

    $ yarn sequelize db:migrate:undo

About

It is a project to study NodeJS technology together with SQL, which would be a relational database, where PostgresSQL was used in the project in question.

Topics

Resources

Stars

Watchers

Forks