Skip to content

Commit 3c94978

Browse files
Merge pull request #3159 from priyashpatil/docs-sequilize-reference-updates
docs: update sequelize reference links to v6
2 parents 93a9215 + 87ef2c0 commit 3c94978

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

content/techniques/sql.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,7 @@ import { SequelizeModule } from '@nestjs/sequelize';
757757
export class AppModule {}
758758
```
759759

760-
The `forRoot()` method supports all the configuration properties exposed by the Sequelize constructor ([read more](https://sequelize.org/v5/manual/getting-started.html#setting-up-a-connection)). In addition, there are several extra configuration properties described below.
760+
The `forRoot()` method supports all the configuration properties exposed by the Sequelize constructor ([read more](https://sequelize.org/docs/v6/getting-started/#connecting-to-a-database)). In addition, there are several extra configuration properties described below.
761761

762762
<table>
763763
<tr>
@@ -1046,7 +1046,7 @@ With that option specified, every model registered through the `forFeature()` me
10461046

10471047
A database transaction symbolizes a unit of work performed within a database management system against a database, and treated in a coherent and reliable way independent of other transactions. A transaction generally represents any change in a database ([learn more](https://en.wikipedia.org/wiki/Database_transaction)).
10481048

1049-
There are many different strategies to handle [Sequelize transactions](https://sequelize.org/v5/manual/transactions.html). Below is a sample implementation of a managed transaction (auto-callback).
1049+
There are many different strategies to handle [Sequelize transactions](https://sequelize.org/docs/v6/other-topics/transactions/). Below is a sample implementation of a managed transaction (auto-callback).
10501050

10511051
First, we need to inject the `Sequelize` object into a class in the normal way:
10521052

@@ -1087,9 +1087,9 @@ async createMany() {
10871087
10881088
#### Migrations
10891089

1090-
[Migrations](https://sequelize.org/v5/manual/migrations.html) provide a way to incrementally update the database schema to keep it in sync with the application's data model while preserving existing data in the database. To generate, run, and revert migrations, Sequelize provides a dedicated [CLI](https://sequelize.org/v5/manual/migrations.html#the-cli).
1090+
[Migrations](https://sequelize.org/docs/v6/other-topics/migrations/) provide a way to incrementally update the database schema to keep it in sync with the application's data model while preserving existing data in the database. To generate, run, and revert migrations, Sequelize provides a dedicated [CLI](https://sequelize.org/docs/v6/other-topics/migrations/#installing-the-cli).
10911091

1092-
Migration classes are separate from the Nest application source code. Their lifecycle is maintained by the Sequelize CLI. Therefore, you are not able to leverage dependency injection and other Nest specific features with migrations. To learn more about migrations, follow the guide in the [Sequelize documentation](https://sequelize.org/v5/manual/migrations.html#the-cli).
1092+
Migration classes are separate from the Nest application source code. Their lifecycle is maintained by the Sequelize CLI. Therefore, you are not able to leverage dependency injection and other Nest specific features with migrations. To learn more about migrations, follow the guide in the [Sequelize documentation](https://sequelize.org/docs/v6/other-topics/migrations/#installing-the-cli).
10931093

10941094
<app-banner-courses></app-banner-courses>
10951095

0 commit comments

Comments
 (0)