Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
public
/
sequelize
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
不要怂,就是干,撸起袖子干!
Commit 712335b0
authored
Dec 23, 2019
by
Darren "Dee" Lee
Committed by
Pedro Augusto de Paula Barbosa
Dec 23, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs(transactions): fix addIndex example and grammar (#11759)
1 parent
3acc76dc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
docs/manual/migrations.md
docs/manual/migrations.md
View file @
712335b
...
@@ -258,7 +258,7 @@ module.exports = {
...
@@ -258,7 +258,7 @@ module.exports = {
};
};
```
```
The next
is an example
of a migration that has a foreign key. You can use references to specify a foreign key:
The next
example is
of a migration that has a foreign key. You can use references to specify a foreign key:
```
js
```
js
module
.
exports
=
{
module
.
exports
=
{
...
@@ -291,7 +291,7 @@ module.exports = {
...
@@ -291,7 +291,7 @@ module.exports = {
```
```
The next
is an example of a migration that has
uses async/await where you create an unique index on a new column:
The next
example is of a migration that
uses async/await where you create an unique index on a new column:
```
js
```
js
module
.
exports
=
{
module
.
exports
=
{
...
@@ -312,8 +312,8 @@ module.exports = {
...
@@ -312,8 +312,8 @@ module.exports = {
{
{
fields
:
'petName'
,
fields
:
'petName'
,
unique
:
true
,
unique
:
true
,
}
,
transaction
,
{
transaction
}
}
);
);
await
transaction
.
commit
();
await
transaction
.
commit
();
}
catch
(
err
)
{
}
catch
(
err
)
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment