Skip to content

Commit

Permalink
chore: Turn on MD024 for non-siblings
Browse files Browse the repository at this point in the history
Inline disabled in the case of old tab style headings
  • Loading branch information
nschonni committed Oct 15, 2020
1 parent d92581b commit 39e8ac2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .markdownlint.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{
"default": true,
"MD013": false,
"MD024": false,
"MD024": {
"allow_different_nesting": true
},
"MD025": { "front_matter_title": "" },
"MD028": false,
"MD033": { "allowed_elements": ["sup", "sub", "a"] },
Expand Down
4 changes: 4 additions & 0 deletions entity-framework/core/managing-schemas/migrations/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ Since this isn't the project's first migration, EF Core now compares your update

You can now apply your migration as before:

<!--markdownlint-disable MD024-->

#### [.NET Core CLI](#tab/dotnet-core-cli)

```dotnetcli
Expand All @@ -124,6 +126,8 @@ dotnet ef database update
Update-Database
```

<!--markdownlint-enable MD024-->

***

Note that this time, EF detects that the database already exists. In addition, when our first migration was applied above, this fact was recorded in a special migrations history table in your database; this allows EF to automatically apply only the new migration.
Expand Down
4 changes: 4 additions & 0 deletions entity-framework/core/managing-schemas/migrations/managing.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ The timestamp in the filename helps keep them ordered chronologically so you can

You are free to move Migrations files and change their namespace manually. New migrations are created as siblings of the last migration. Alternatively, you can specify the namespace at generation time as follows:

<!--markdownlint-disable MD024-->

### [.NET Core CLI](#tab/dotnet-core-cli)

```dotnetcli
Expand All @@ -56,6 +58,8 @@ dotnet ef migrations add InitialCreate --namespace Your.Namespace
Add-Migration InitialCreate -Namespace Your.Namespace
```

<!--markdownlint-enable MD024-->

***

## Customize migration code
Expand Down

0 comments on commit 39e8ac2

Please sign in to comment.