Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/miguelitodev/sql-nodejs

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.
https://github.com/miguelitodev/sql-nodejs

javascript js node nodejs postg sequelize

Last synced: about 1 month ago
JSON representation

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.

Awesome Lists containing this project

README

        

# 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
```