mirror of
https://github.com/typeorm/typeorm.git
synced 2025-12-08 21:26:23 +00:00
docs: fix missing DataSource in migrations config (#11249)
This commit is contained in:
parent
5f6039289c
commit
87b9fad737
@ -61,7 +61,9 @@ This place is called "migrations".
|
||||
Before creating a new migration you need to setup your data source options properly:
|
||||
|
||||
```ts
|
||||
{
|
||||
import { DataSource } from "typeorm";
|
||||
|
||||
export default new DataSource({
|
||||
type: "mysql",
|
||||
host: "localhost",
|
||||
port: 3306,
|
||||
@ -71,7 +73,7 @@ Before creating a new migration you need to setup your data source options prope
|
||||
entities: [/*...*/],
|
||||
migrations: [/*...*/],
|
||||
migrationsTableName: "custom_migration_table",
|
||||
}
|
||||
})
|
||||
```
|
||||
|
||||
Here we setup two options:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user