-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
VCST-1090: The description field is reset in Addresses blade (#422)
fix: The description field is reset in Addresses blade
- Loading branch information
Showing
14 changed files
with
6,247 additions
and
45 deletions.
There are no files selected for viewing
2,068 changes: 2,068 additions & 0 deletions
2,068
...Commerce.OrdersModule.Data.MySql/Migrations/20240610080959_AddressDescription.Designer.cs
Large diffs are not rendered by default.
Oops, something went wrong.
30 changes: 30 additions & 0 deletions
30
src/VirtoCommerce.OrdersModule.Data.MySql/Migrations/20240610080959_AddressDescription.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using Microsoft.EntityFrameworkCore.Migrations; | ||
|
||
#nullable disable | ||
|
||
namespace VirtoCommerce.OrdersModule.Data.MySql.Migrations | ||
{ | ||
/// <inheritdoc /> | ||
public partial class AddressDescription : Migration | ||
{ | ||
/// <inheritdoc /> | ||
protected override void Up(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.AddColumn<string>( | ||
name: "Description", | ||
table: "OrderAddress", | ||
type: "varchar(128)", | ||
maxLength: 128, | ||
nullable: true) | ||
.Annotation("MySql:CharSet", "utf8mb4"); | ||
} | ||
|
||
/// <inheritdoc /> | ||
protected override void Down(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.DropColumn( | ||
name: "Description", | ||
table: "OrderAddress"); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,19 @@ | ||
# Generate Migrations | ||
|
||
## Package manager | ||
Add-Migration Initial -Context VirtoCommerce.OrdersModule.Data.Repositories.OrderDbContext -Verbose -OutputDir Migrations -Project VirtoCommerce.OrdersModule.Data.MySql -StartupProject VirtoCommerce.OrdersModule.Data.MySql -Debug | ||
|
||
|
||
|
||
### Entity Framework Core Commands | ||
``` | ||
dotnet tool install --global dotnet-ef --version 6.* | ||
## Install CLI tools for Entity Framework Core | ||
```cmd | ||
dotnet tool install --global dotnet-ef --version 8.0.0 | ||
``` | ||
|
||
**Generate Migrations** | ||
or update | ||
|
||
```cmd | ||
dotnet tool update --global dotnet-ef --version 8.0.0 | ||
``` | ||
dotnet ef migrations add Initial | ||
dotnet ef migrations add Update1 | ||
dotnet ef migrations add Update2 | ||
``` | ||
|
||
etc.. | ||
|
||
**Apply Migrations** | ||
## Add Migration | ||
Select Data.<Provider> folder and run following command for each provider: | ||
|
||
`dotnet ef database update` | ||
```cmd | ||
dotnet ef migrations add <migration-name> | ||
``` |
Oops, something went wrong.