Skip to content

Commit

Permalink
♻️ move-migrations (#334)
Browse files Browse the repository at this point in the history
* Move migrations to the correct folder

* Update readme - running the solution
  • Loading branch information
danielmackay authored Jun 10, 2024
1 parent b251b2e commit a727ab2
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 17 deletions.
36 changes: 24 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,21 +156,33 @@ dotnet new ssw-ca-command --name {{CommandName}} --entityName {{Entity}} --slnNa

1. Start dockerized SQL Server, create and seed the database.

Windows:
```ps
.\up.ps1
```
Windows:
```ps
.\up.ps1
```

Mac/Linux:
```bash
pwsh ./up.ps1
```
Mac/Linux:
```bash
pwsh ./up.ps1
```

2. Run the solution
2. Change directory

```bash
dotnet run
```
Windows:
```ps
cd src\WebApi\
```

Mac/Linux:
```bash
cd src/WebApi/
```

3. Run the solution

```bash
dotnet run
```

> **NOTE:** The first time you run the solution, it may take a while to download the docker images, create the DB, and seed the data.

Expand Down
2 changes: 1 addition & 1 deletion src/Infrastructure/Persistence/Migrations/.editorconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Treat all cs files in this folder as generated code
[*.cs]
generated_code = true
generated_code = true

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#nullable disable

namespace SSW.CleanArchitecture.Infrastructure.Migrations
namespace Infrastructure.Persistence.Migrations
{
/// <inheritdoc />
public partial class Remove_Todos : Migration
Expand Down Expand Up @@ -39,4 +39,4 @@ protected override void Down(MigrationBuilder migrationBuilder)
});
}
}
}
}

0 comments on commit a727ab2

Please sign in to comment.